From fba20a776da6d4a36db21d9b21e9e937bef00ac3 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 19 Jul 2010 07:10:53 +0000 Subject: - Many fixup patches from Savannah. - Fix the test suite on Solaris (from Boris) - Update the manual for .ONESHELL --- tests/scripts/targets/POSIX | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/scripts/targets/POSIX') diff --git a/tests/scripts/targets/POSIX b/tests/scripts/targets/POSIX index 662c16d..1b57448 100644 --- a/tests/scripts/targets/POSIX +++ b/tests/scripts/targets/POSIX @@ -6,10 +6,12 @@ $details = ""; # Ensure turning on .POSIX enables the -e flag for the shell +# We can't just use "false" because on different systems it provides a +# different exit code. run_make_test(q! .POSIX: -all: ; @false; true +all: ; @r() { return 1; }; r; true !, '', "#MAKE#: *** [all] Error 1\n", 512); @@ -18,9 +20,9 @@ all: ; @false; true run_make_test(q! .SHELLFLAGS = -xc .POSIX: -all: ; @false; true +all: ; @r() { return 1; }; r; true !, - '', "+ false\n+ true\n"); + '', "+ r\n+ return 1\n+ true\n"); # This tells the test driver that the perl test script executed properly. 1; -- cgit v1.2.3