summaryrefslogtreecommitdiff
path: root/tests/syntax.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syntax.at')
-rw-r--r--tests/syntax.at6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/syntax.at b/tests/syntax.at
index 35134d1bd11e..eeaacc66c618 100644
--- a/tests/syntax.at
+++ b/tests/syntax.at
@@ -2,6 +2,10 @@
AT_SETUP([Command combinations])
+# False on OpenSolaris returns 255
+echo 'exit 1' > myfalse
+chmod +x myfalse
+
AT_CHECK([tcsh -f -c 'echo ok|tr ok OK'], ,
[OK
])
@@ -21,7 +25,7 @@ AT_CHECK([tcsh -f -c 'true && echo OK'], ,
[OK
])
-AT_CHECK([tcsh -f -c 'false && echo fail'], 1)
+AT_CHECK([tcsh -f -c './myfalse && echo fail'], 1)
AT_CHECK([[tcsh -f -c '(sleep 1; echo async) & echo sync; wait' \
| sed 's/ [0123456789]*$/ /']], ,