summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2020-05-22 08:45:23 +0000
committeranton <anton@openbsd.org>2020-05-22 08:45:23 +0000
commit206b3d4c5f41960ef7ab2fd440d924662cca7378 (patch)
tree8bd0eaf6392c02988e759dba02aa156673aebd6a /regress
parentFix the exit code when eval()uating a || compound list, it would (diff)
downloadwireguard-openbsd-206b3d4c5f41960ef7ab2fd440d924662cca7378.tar.xz
wireguard-openbsd-206b3d4c5f41960ef7ab2fd440d924662cca7378.zip
Add test covering revision 1.64 of c_sh, fix exit code of compound lists
while using option e.
Diffstat (limited to 'regress')
-rw-r--r--regress/bin/ksh/obsd-regress.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/regress/bin/ksh/obsd-regress.t b/regress/bin/ksh/obsd-regress.t
index d71897cb17e..d94695111cf 100644
--- a/regress/bin/ksh/obsd-regress.t
+++ b/regress/bin/ksh/obsd-regress.t
@@ -1,4 +1,4 @@
-# $OpenBSD: obsd-regress.t,v 1.10 2018/12/08 21:03:51 jca Exp $
+# $OpenBSD: obsd-regress.t,v 1.11 2020/05/22 08:45:23 anton Exp $
#
# ksh regression tests from OpenBSD
@@ -94,6 +94,17 @@ arguments: !-e!
expected-exit: e != 0
---
+name: or-list-error-2
+description:
+ Test exit status of || list in -e mode
+stdin:
+ eval false || true
+ echo "should print"
+expected-stdout:
+ should print
+arguments: !-e!
+---
+
name: var-functions
description:
Calling