[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh
From: |
Paul Eggert |
Subject: |
[PATCH] tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh |
Date: |
Sat, 03 Mar 2012 21:44:17 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
(I pushed this to port the new test to Solaris 8 /bin/sh.)
* tests/m4sh.at (AS@&address@hidden): 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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/m4sh.at b/tests/m4sh.at
index 38667e4..a24915b 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
--
1.7.6.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh,
Paul Eggert <=