]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/run_make_tests.pl: Exit 1 if we detect an error.
authorPaul Smith <psmith@gnu.org>
Wed, 6 Jul 2022 03:45:40 +0000 (23:45 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 9 Jul 2022 14:47:13 +0000 (10:47 -0400)
tests/run_make_tests.pl

index 155cd2bad22eff4269f7f007c6b030bc515685ad..a534176fb42d41112314aeb87d95307540c39e5c 100644 (file)
@@ -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;
    }