]>
git.saurik.com Git - apple/dyld.git/blob - unit-tests/bin/exit-non-zero-pass.pl
7 my ($format, $args) = @_;
10 printf("PASS \"$format\"\n", @$args);
15 my ($format, $args) = @_;
18 printf("FAIL \"$format\"\n", @$args);
21 my $pass_string = shift @ARGV;
22 my $fail_string = shift @ARGV;
25 # redirect stderr to stdout
26 open(STDERR
, ">/tmp/exit-non-zero.tmp") || die("$!");
27 if(0 != system(@ARGV))
35 close(STDERR
) || die("$!");
36 open(OUT
, "</tmp/exit-non-zero.tmp") || die("$!");
41 close(OUT
) || die("$!");
42 unlink "/tmp/exit-non-zero.tmp";