]>
git.saurik.com Git - apple/ld64.git/blob - ld64-134.9/unit-tests/bin/pass-iff-exit-non-zero.pl
12 if ( exists $ENV{UNIT_TEST_NAME
} ) {
13 $test_name = $ENV{UNIT_TEST_NAME
};
16 my $ret = system(@ARGV);
17 my $exit_value = $ret >> 8;
18 my $signal_num = $ret & 127;
19 my $dumped_core = $ret & 128;
20 my $crashed = $signal_num + $dumped_core;
22 if(0 == $exit_value || 0 != $crashed)
24 printf("FAIL $test_name\n");
28 printf("PASS $test_name\n");