From aeef07a0752ffdc98e1d5a32c508794b93c9f79d Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 12 Dec 2022 11:39:36 +0000 Subject: make: fixes to test script Unset MAKEFLAGS in the test script so it works if it's run using a version of make that has options which pdpmake doesn't understand. Return $FAILCOUNT as the exit status so the number of failures can be reported. --- testsuite/make.tests | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/make.tests b/testsuite/make.tests index 7749bed52..2d286d5b8 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests @@ -1,6 +1,7 @@ #!/bin/sh . ./testing.sh +unset MAKEFLAGS # testing "test name" "command" "expected result" "file input" "stdin" @@ -529,3 +530,5 @@ file1: @touch file1 ' cd .. || exit 1; rm -rf make.tempdir 2>/dev/null + +exit $FAILCOUNT -- cgit v1.2.3-55-g6feb