diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-29 13:31:32 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-30 00:12:18 -0400 |
commit | d0944ee2e8705734c47371f3ec881ce9dae83411 (patch) | |
tree | 9ed1236171a9fcf7988ee51b2826aa2ccfd6c838 /tests/scripts/variables | |
parent | 38066b6f19033431052e45861a1671dfb23ea0de (diff) | |
download | gunmake-d0944ee2e8705734c47371f3ec881ce9dae83411.tar.gz |
Solaris /bin/sh can't handle multiple options ("-e -c").
Diffstat (limited to 'tests/scripts/variables')
-rw-r--r-- | tests/scripts/variables/SHELL | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/scripts/variables/SHELL b/tests/scripts/variables/SHELL index 4c73890..1d01ba3 100644 --- a/tests/scripts/variables/SHELL +++ b/tests/scripts/variables/SHELL @@ -71,12 +71,20 @@ all: ; \@$script '', $out); # Do it again but add spaces to SHELLFLAGS -$flags = '-x -c'; -run_make_test(qq! + +# 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 |