summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-06 20:03:13 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-06 20:03:13 +0100
commit86fa5ec3d5bd08d5ea5282aafb8a1d02917a088b (patch)
tree32022429559c150420b088582bc46ebec1560b63 /tests
parentd0cc05244f2cf598f98dbaf42c2461be9763b0a4 (diff)
downloadxe-86fa5ec3d5bd08d5ea5282aafb8a1d02917a088b.tar.gz
xe-86fa5ec3d5bd08d5ea5282aafb8a1d02917a088b.tar.xz
xe-86fa5ec3d5bd08d5ea5282aafb8a1d02917a088b.zip
drop -k and make it default, add -F to exit on errors immediately
Diffstat (limited to 'tests')
-rwxr-xr-xtests7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests b/tests
index 51a47a4..b02b638 100755
--- a/tests
+++ b/tests
@@ -204,14 +204,15 @@ check_output 'exit code on empty input when run with -R' 'true | $XE -R echo a |
 122
 EOF
 
-check_output 'stops on first error' 'necho a b c | $XE -s "if [ b = \$1 ]; then false; else echo \$1; fi" || echo $?' <<EOF
+check_output 'doesn'\''t stop on errors by default' 'necho a b c | $XE -s "if [ b = \$1 ]; then false; else echo \$1; fi" || echo $?' <<EOF
 a
+c
 123
 EOF
 
-check_output 'doesn'\''t stop on errors with -k' 'necho a b c | $XE -k -s "if [ b = \$1 ]; then false; else echo \$1; fi"' <<EOF
+check_output 'stops on first error with -F' 'necho a b c | $XE -F -s "if [ b = \$1 ]; then false; else echo \$1; fi" 2>/dev/null || echo $?' <<EOF
 a
-c
+123
 EOF
 
 printf '# limit checks, expecting maximal POSIX limits available\n'