File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,23 @@ my sub die_in_return () { return die };
47
47
is ({ try { die_in_return(); 23 }; 42 }()), 42 , " die in return" ;
48
48
49
49
# ?rakudo skip 'RT #67374'
50
+ # ?niecza skip 'test needs rewriting, eval does not catch exceptions'
50
51
{
51
52
eval ' die "bughunt"' ;
52
53
my $ error = " $!" ;
53
54
try { die };
54
55
is " $!" , $ error , ' die with no argument uses $!' ;
55
56
}
56
57
58
+ # ?niecza skip 'Object reference not set to an instance of an object'
57
59
is_run( ' die "first line"' ,
58
60
{ status => sub { 0 != $ ^ a },
59
61
out => ' ' ,
60
62
err => rx /^ 'first line' /,
61
63
},
62
64
' die with no output' );
63
65
66
+ # ?niecza skip 'Object reference not set to an instance of an object'
64
67
is_run( ' say "hello"; die "Nos morituri te salutant!\n"' ,
65
68
{ status => sub { 0 != $ ^ a },
66
69
out => " hello\n " ,
You can’t perform that action at this time.
0 commit comments