Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Test] do not count dying will Null PMC access as a success
  • Loading branch information
moritz committed Oct 5, 2011
1 parent 545638a commit 3d67ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test.pm
Expand Up @@ -269,7 +269,7 @@ multi sub eval_dies_ok(Str $code, $reason) {
my $ee = eval_exception($code);
if defined $ee {
# XXX no regexes yet in nom
my $bad_death = 0; #"$ee" ~~ / ^ 'Null PMC access ' /;
my $bad_death = $ee.Str.index('Null PMC access ').defined;
if $bad_death {
diag "wrong way to die: '$ee'";
}
Expand Down

0 comments on commit 3d67ff2

Please sign in to comment.