Merge branch 0.08200_track into master
[dbsrgits/DBIx-Class.git] / t / 71mysql.t
index 84bebc7..d732e1f 100644 (file)
@@ -384,7 +384,13 @@ ZEROINSEARCH: {
 
     # kill our $dbh
     $schema_autorecon->storage->_dbh(undef);
-    ok (! defined $orig_dbh, 'Parent $dbh handle is gone');
+
+    TODO: {
+      local $TODO = "Perl $] is known to leak like a sieve"
+        if DBIx::Class::_ENV_::PEEPEENESS();
+
+      ok (! defined $orig_dbh, 'Parent $dbh handle is gone');
+    }
   }
   else {
     # wait for parent to kill its $dbh
@@ -400,7 +406,13 @@ ZEROINSEARCH: {
     # try to do something dbic-esque
     $rs->create({ name => "Hardcore Forker $$" });
 
-    ok (! defined $orig_dbh, 'DBIC operation triggered reconnect - old $dbh is gone');
+
+    TODO: {
+      local $TODO = "Perl $] is known to leak like a sieve"
+        if DBIx::Class::_ENV_::PEEPEENESS();
+
+      ok (! defined $orig_dbh, 'DBIC operation triggered reconnect - old $dbh is gone');
+    }
 
     exit 0;
   }