diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-03-03 18:42:21 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-03-03 21:37:17 -0800 |
commit | 7d55ba7fd930ad1f56946ba9d7e9ef573caf93f3 (patch) | |
tree | 578c57f944b56dcafbbca09e920a48dcf45e353b | |
parent | cca288d94e1d1992dd157e43c5891213c87b46be (diff) | |
download | autoconf-7d55ba7fd930ad1f56946ba9d7e9ef573caf93f3.tar.gz |
tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh
* tests/m4sh.at (AS@&t@_EXECUTABLE): Treat any nonzero exit
status as failure. This is needed for Solaris 8 /bin/sh,
where executing a nonexecutable file causes the shell
to say the file had exit status 1.
-rw-r--r-- | tests/m4sh.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/m4sh.at b/tests/m4sh.at index 38667e49..a24915b2 100644 --- a/tests/m4sh.at +++ b/tests/m4sh.at @@ -579,7 +579,7 @@ st1=$? (./foo.sh) >/dev/null 2>&1 st2=$? case $st1:$st2 in - 1:126 | 0:0 ) echo 2 ;; + *[[1-9]]*:*[[1-9]]* | 0:0 ) echo 2 ;; *) echo "fail ($st1:$st2)" ;; esac # Now things better be executable |