diff -r e3cc2504462c -r c2ee16ca01b7 usr/share/drupal6/index.php
--- a/usr/share/drupal6/index.php	Fri Aug 14 10:07:19 2009 +0200
+++ b/usr/share/drupal6/index.php	Fri Aug 14 12:19:32 2009 +0200
@@ -1,5 +1,6 @@
 <?php
 // $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
+require_once './sites/all/modules/code_coverage/code_coverage.module';
 
 /**
  * @file
diff -r e3cc2504462c -r c2ee16ca01b7 usr/share/drupal6/xmlrpc.php
--- a/usr/share/drupal6/xmlrpc.php	Fri Aug 14 10:07:19 2009 +0200
+++ b/usr/share/drupal6/xmlrpc.php	Fri Aug 14 12:19:32 2009 +0200
@@ -1,5 +1,6 @@
 <?php
 // $Id: xmlrpc.php,v 1.15 2005/12/10 19:26:47 dries Exp $
+require_once './sites/all/modules/code_coverage/code_coverage.module';
 
 /**
  * @file
diff -r e3cc2504462c -r c2ee16ca01b7 usr/src/simpletest/simpletest.module
--- a/usr/src/simpletest/simpletest.module	Fri Aug 14 10:07:19 2009 +0200
+++ b/usr/src/simpletest/simpletest.module	Fri Aug 14 12:19:32 2009 +0200
@@ -412,7 +412,9 @@
   // Perform the next test.
   $test_class = array_shift($test_list);
   $test = new $test_class($test_id);
+  xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
   $test->run();
+  code_coverage_log();
   $size = count($test_list);
   $info = $test->getInfo();
 
