Skip to content

Commit

Permalink
Test Failure.new(Exception.new) does not segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 11, 2017
1 parent 5cbef9d commit 65336f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S04-exceptions/fail.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/spec/packages>;
use Test;
use Test::Util;

plan 35;
plan 36;

# L<S04/Exceptions/The fail function>

Expand Down Expand Up @@ -173,4 +173,8 @@ subtest 'Failure.self' => {
is-deeply $f, $f.self, 'handled exceptions are passed through as is';
}

# RT #124434
is_run Failure.new(Exception.new); Nil, {:out(""), :err(*), :1status},
'Failure.new(Exception.new) does not segfault';

# vim: ft=perl6

0 comments on commit 65336f6

Please sign in to comment.