]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/bin/fail-if-stdin.pl
ld64-134.9.tar.gz
[apple/ld64.git] / unit-tests / bin / fail-if-stdin.pl
index f5e2fdfa221a696a33a2ac856e2e5ee156780d78..c0bf2903f808d40640bc36e5269e0583c1d9935a 100755 (executable)
@@ -15,10 +15,8 @@ if ( exists $ENV{UNIT_TEST_NAME} ) {
 
 if( eof STDIN )
 {
-
-}
-else
-{
-    printf("FAIL $test_name\n");
+    exit 0;
 }
-exit 0;
+
+printf("FAIL $test_name\n");
+exit 1;