Index: index.php
===================================================================
RCS file: /cvs/drupal/drupal/index.php,v
retrieving revision 1.98
diff -u -p -r1.98 index.php
--- index.php	8 Feb 2009 20:27:51 -0000	1.98
+++ index.php	22 Sep 2009 10:58:59 -0000
@@ -17,6 +17,10 @@
  */
 define('DRUPAL_ROOT', getcwd());
 
+// Patched for code coverage.
+require_once DRUPAL_ROOT . '/sites/all/modules/code_coverage/code_coverage.module';
+// End patch.
+
 require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
 $return = menu_execute_active_handler();
Index: xmlrpc.php
===================================================================
RCS file: /cvs/drupal/drupal/xmlrpc.php,v
retrieving revision 1.17
diff -u -p -r1.17 xmlrpc.php
--- xmlrpc.php	8 Feb 2009 20:27:51 -0000	1.17
+++ xmlrpc.php	22 Sep 2009 10:58:59 -0000
@@ -11,6 +11,10 @@
  */
 define('DRUPAL_ROOT', getcwd());
 
+// Patched for code coverage.
+require_once DRUPAL_ROOT . '/sites/all/modules/code_coverage/code_coverage.module';
+// End patch.
+
 include_once DRUPAL_ROOT . '/includes/bootstrap.inc';
 drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
 include_once DRUPAL_ROOT . '/includes/xmlrpc.inc';
Index: modules/simpletest/simpletest.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.module,v
retrieving revision 1.74
diff -u -p -r1.74 simpletest.module
--- modules/simpletest/simpletest.module	21 Sep 2009 06:52:40 -0000	1.74
+++ modules/simpletest/simpletest.module	22 Sep 2009 10:59:00 -0000
@@ -191,7 +191,11 @@ function _simpletest_batch_operation($te
   // Perform the next test.
   $test_class = array_shift($test_list);
   $test = new $test_class($test_id);
+  // Patched for code coverage.
+  xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
   $test->run();
+  code_coverage_log();
+  // End patch.
   $size = count($test_list);
   $info = $test->getInfo();
 
