[Jifty-commit] r7115 - in jifty/trunk: lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Wed May 27 17:12:17 EDT 2009


Author: jesse
Date: Wed May 27 17:12:16 2009
New Revision: 7115

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Test.pm

Log:
 r63684 at 17h:  jesse | 2009-05-27 17:12:00 -0400
 Catch "die in DESTROY block" errors


Modified: jifty/trunk/lib/Jifty/Test.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test.pm	(original)
+++ jifty/trunk/lib/Jifty/Test.pm	Wed May 27 17:12:16 2009
@@ -644,7 +644,11 @@
             Jifty->handle->disconnect();
             my $schema = Jifty::Script::Schema->new;
             $schema->{drop_database} = 1;
-            $schema->run;
+
+            # The schema dropper dies when it can't drop the database
+            # this shouldn't kill tests
+            local $@; 
+            eval { $schema->run };
         }
 
         # Unlink test files


More information about the Jifty-commit mailing list