### Eclipse Workspace Patch 1.0
#P simpletest
Index: simpletest.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/simpletest.module,v
retrieving revision 1.41
diff -u -r1.41 simpletest.module
--- simpletest.module	3 Apr 2008 19:57:15 -0000	1.41
+++ simpletest.module	4 Apr 2008 23:16:12 -0000
@@ -101,6 +101,13 @@
   drupal_add_js(drupal_get_path('module', 'simpletest') .'/simpletest.js', 'module');
   $output = drupal_get_form('simpletest_overview_form');
 
+  // Clean db in case of left over tables from crashed tests.
+  $ret = array();
+  $result = db_query("SHOW TABLES LIKE 'simpletest%'");
+  while ($table = db_result($result)) {
+    db_drop_table($ret, $table);
+  }
+
   if (simpletest_running_output()) {
     return simpletest_running_output() . $output;
   }
