]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Mar 2012 02:42:21 +0000 (18:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Mar 2012 05:37:17 +0000 (21:37 -0800)
* 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.

tests/m4sh.at

index 38667e499a631caa28e0a1f01078acdd221272c6..a24915b2ebdf9d018a69499c44e0e0d68dcccaf2 100644 (file)
@@ -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