]>
git.saurik.com Git - apple/ld64.git/blob - unit-tests/bin/exit-non-zero-pass.pl
6 # ${PASS_UNLESS} "test name" command
11 my $string = shift @ARGV;
12 my $ret = system(@ARGV);
13 my $exit_value = $ret >> 8;
14 my $signal_num = $ret & 127;
15 my $dumped_core = $ret & 128;
16 my $crashed = $signal_num + $dumped_core;
18 if(0 == $exit_value || 0 != $crashed)
20 printf("FAIL $string\n");
24 printf("PASS $string\n");