]> git.saurik.com Git - apple/ld64.git/blame_incremental - unit-tests/bin/fail-if-exit-non-zero.pl
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / bin / fail-if-exit-non-zero.pl
... / ...
CommitLineData
1#!/usr/bin/perl -w
2
3use strict;
4
5my $test_name = "";
6if ( exists $ENV{UNIT_TEST_NAME} ) {
7 $test_name = $ENV{UNIT_TEST_NAME};
8}
9
10if(system(@ARGV) != 0)
11{
12 printf("FAIL $test_name\n");
13 exit 1;
14}
15
16exit 0;