diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-02-03 18:26:19 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-02-03 18:32:28 +0000 |
commit | a3be1a443088d7516f15caf915b509406b43355d (patch) | |
tree | b95e90dd5e0f84410a1d86c1d58a221089ca4162 /tests/scripts/variables/SHELL | |
parent | 7290ffb132cfa8c13bf6fb306eb3250e0f9c1f65 (diff) | |
download | make-a3be1a443088d7516f15caf915b509406b43355d.tar.gz |
Import make 4.1baserock/tiagogomes/armv8l64
Diffstat (limited to 'tests/scripts/variables/SHELL')
-rw-r--r-- | tests/scripts/variables/SHELL | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/scripts/variables/SHELL b/tests/scripts/variables/SHELL index 7b7e7fef..1d01ba3f 100644 --- a/tests/scripts/variables/SHELL +++ b/tests/scripts/variables/SHELL @@ -70,6 +70,22 @@ all: ; \@$script !, '', $out); +# Do it again but add spaces to SHELLFLAGS + +# Some shells (*shakes fist at Solaris*) cannot handle multiple flags in +# separate arguments. +my $t = `/bin/sh -e -c true 2>/dev/null`; +my $multi_ok = $? == 0; + +if ($multi_ok) { + $flags = '-x -c'; + run_make_test(qq! +.SHELLFLAGS = $flags +all: ; \@$script +!, + '', $out); +} + # We can't just use "false" because on different systems it provides a # different exit code--once again Solaris: false exits with 255 not 1 $script = 'true; false; true'; @@ -81,6 +97,7 @@ run_make_test(qq! .SHELLFLAGS = $flags all: ; \@$script !, - '', "$out#MAKE#: *** [all] Error $err\n", 512); + '', "$out#MAKEFILE#:3: recipe for target 'all' failed +#MAKE#: *** [all] Error $err\n", 512); 1; |