From: Paul Eggert Date: Sun, 4 Mar 2012 02:42:21 +0000 (-0800) Subject: tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh X-Git-Tag: v2.69~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d55ba7fd930ad1f56946ba9d7e9ef573caf93f3;p=thirdparty%2Fautoconf.git 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. --- 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