From: Paul Smith Date: Wed, 6 Jul 2022 03:45:40 +0000 (-0400) Subject: * tests/run_make_tests.pl: Exit 1 if we detect an error. X-Git-Tag: 4.3.90~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d7b5d6d8047301ee7126c3e4527a535b7898680;p=thirdparty%2Fmake.git * tests/run_make_tests.pl: Exit 1 if we detect an error. --- 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; }