darling-dyld/unit-tests/bin/pass-iff-exit-zero.pl

24 lines
278 B
Perl
Raw Permalink Normal View History

2022-04-19 03:33:29 +00:00
#!/usr/bin/perl -w
#
# Usage:
#
# ${PASS_IFF} command
#
use strict;
my $test_name = "";
if ( exists $ENV{UNIT_TEST_NAME} ) {
$test_name = $ENV{UNIT_TEST_NAME};
}
if(0 != system(@ARGV))
{
printf("FAIL $test_name\n");
exit 1;
}
printf("PASS $test_name\n");
exit 0;