Index: simpletest_clone.test
===================================================================
--- simpletest_clone.test	(revision 1239)
+++ simpletest_clone.test	(working copy)
@@ -37,6 +37,11 @@
     // Generate temporary prefixed database to ensure that tests have a clean starting point.
     $db_prefix = 'simpletest' . mt_rand(1000, 1000000);
 
+    // If schema module is installed, this avoids incorrect cloning of broken schema
+    if (module_exists('schema')) {
+      $schemas = schema_invoke('inspect');
+    }
+
     // Copy each table into new database.
     foreach ($schemas as $name => $schema) {
       $this->cloneTable($name, $schema);
