12 my ($prog, $expect) = (<<'PROG', <<'EXPECT');
20 fresh_perl_is($prog, $expect);
22 # C's EXIT_FAILURE ends up as SS$_ABORT (decimal 44) on VMS, which gets
23 # shifted to 4. Perl_my_exit (unlike Perl_my_failure_exit) does not
24 # have access to the vmsish pragmas to modify that behavior.
26 my $exit_failure = $^O eq 'VMS' ? 4 : 1;
27 is($? >> 8, $exit_failure, "exit code plain my_exit");
29 ($prog, $expect) = (<<'PROG', <<'EXPECT');
32 call_sv( sub { my_exit(1); }, G_EVAL );
37 fresh_perl_is($prog, $expect);
38 is($? >> 8, $exit_failure, "exit code my_exit inside a call_sv with G_EVAL");