]> git.saurik.com Git - apple/dyld.git/blame - unit-tests/bin/pass-iff-exit-zero.pl
dyld-360.22.tar.gz
[apple/dyld.git] / unit-tests / bin / pass-iff-exit-zero.pl
CommitLineData
39a8cd10
A
1#!/usr/bin/perl -w
2
3#
4# Usage:
5#
6# ${PASS_IFF} command
7#
8
9use strict;
10
11my $test_name = "";
12if ( exists $ENV{UNIT_TEST_NAME} ) {
13 $test_name = $ENV{UNIT_TEST_NAME};
14}
15
16if(0 != system(@ARGV))
17{
18 printf("FAIL $test_name\n");
19 exit 1;
20}
21
22printf("PASS $test_name\n");
23exit 0;