From: Rafael Garcia-Suarez Date: Tue, 4 May 2010 13:36:47 +0000 (+0200) Subject: die() no longer propagates outside of a Safe compartment X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c919e87379678094951ae4130a71bdc1938ccde1;p=p5sagit%2Fp5-mst-13.2.git die() no longer propagates outside of a Safe compartment so mark the test for that as a TODO. We'll decide later what behaviour is desirable here. Note that it warns instead. --- diff --git a/dist/Safe/t/safesort.t b/dist/Safe/t/safesort.t index 3396f1e..366358d 100644 --- a/dist/Safe/t/safesort.t +++ b/dist/Safe/t/safesort.t @@ -49,6 +49,7 @@ is $@, 42, 'successful closure call should not alter $@'; { my $warns = 0; local $SIG{__WARN__} = sub { $warns++ }; + local $TODO = $] >= 5.013 ? "Doesn't die in 5.13" : undef; ok !eval { $die_func->("died\n"); 1 }, 'should die'; is $@, "died\n", '$@ should be set correctly'; local $TODO = "Shouldn't warn";