From: Jesse Luehrs Date: Tue, 10 Apr 2012 01:01:03 +0000 (-0500) Subject: don't let bugs in Test::DM cause the whole thing to bomb out X-Git-Tag: 2.0502~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7e39015e28d0e9810c4dd819fa2be402c05af74a;p=gitmo%2FMoose.git don't let bugs in Test::DM cause the whole thing to bomb out --- diff --git a/xt/author/test-my-dependents.t b/xt/author/test-my-dependents.t index b89d855..e256a6d 100644 --- a/xt/author/test-my-dependents.t +++ b/xt/author/test-my-dependents.t @@ -89,10 +89,13 @@ for my $module (@modules) { my $reason = $skip_reasons{$module}; $reason = '???' unless defined $reason; local $Test::DependentModules::TODO = $reason; - test_module($module); + local $TODO = $reason; + eval { test_module($module); 1 } + or fail("Died when testing $module: $@"); } else { - test_module($module); + eval { test_module($module); 1 } + or fail("Died when testing $module: $@"); } }