Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (16 sloc) 496 Bytes
use v6;
use Test;
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
use Test::Util;
plan 3;
# L<S29/Context/"=item exit">
is_run 'say 3; exit; say 5',
{ out => "3\n", err => "", status => 0 },
'bare exit; works';
is_run 'say 3; exit 5; say 5',
{ out => "3\n", err => "", status => 5 },
'exit 5; works';
is_run 'say 3; try { exit 5 }; say 5',
{ out => "3\n", err => "", status => 5 },
'try-block does not catch exit exceptions';
# vim: expandtab shiftwidth=4
You can’t perform that action at this time.