Debian Codegraph @

t/child_exit_282.t

raw
1 use Test2::V0;
2
3 plan tests => 1;
4
5 sub checks_exit_code {
6 diag $?;
7
8 if ( $? != 0 ) {
9 die 'exit code is not 0';
10 }
11 }
12
13 ok(lives { checks_exit_code() }, 'exit code OK');
14
15 done_testing;