From 2d7b5d6d8047301ee7126c3e4527a535b7898680 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 5 Jul 2022 23:45:40 -0400 Subject: [PATCH] * tests/run_make_tests.pl: Exit 1 if we detect an error. --- tests/run_make_tests.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index 155cd2ba..a534176f 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -185,9 +185,9 @@ sub valid_option if ($option =~ /^-make([-_]?path)?$/i) { $make_path = shift @argv; - if (!-f $make_path) { + if (! -f $make_path) { print "$option $make_path: Not found.\n"; - exit 0; + exit 1; } return 1; } @@ -196,7 +196,7 @@ sub valid_option $srcdir = shift @argv; if (! -f File::Spec->catfile($srcdir, 'src', 'gnumake.h')) { print "$option $srcdir: Not a valid GNU make source directory.\n"; - exit 0; + exit 1; } return 1; }