diff options
author | 2013-06-07 08:48:18 +0000 | |
---|---|---|
committer | 2013-06-07 08:48:18 +0000 | |
commit | 2e41d805ed35d0fbe3904c146564157cc68288b5 (patch) | |
tree | a24ea627c2648da36e1991ece1e85dd3e54672e9 | |
parent | sync (diff) | |
download | wireguard-openbsd-2e41d805ed35d0fbe3904c146564157cc68288b5.tar.xz wireguard-openbsd-2e41d805ed35d0fbe3904c146564157cc68288b5.zip |
stuff that currently doesn't match what posix says, naddy agrees
-rw-r--r-- | regress/bin/ksh/Makefile | 16 | ||||
-rw-r--r-- | regress/bin/ksh/eval2.sh | 6 | ||||
-rw-r--r-- | regress/bin/ksh/eval3.sh | 6 |
3 files changed, 26 insertions, 2 deletions
diff --git a/regress/bin/ksh/Makefile b/regress/bin/ksh/Makefile index ae966f67b2c..24ef667611f 100644 --- a/regress/bin/ksh/Makefile +++ b/regress/bin/ksh/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.5 2010/03/24 08:29:44 fgsch Exp $ +# $OpenBSD: Makefile,v 1.6 2013/06/07 08:48:18 espie Exp $ -REGRESS_TARGETS=shcrash.sh seterror.sh varfunction.sh eval.sh +REGRESS_TARGETS=shcrash.sh seterror.sh varfunction.sh eval.sh eval2.sh eval3.sh shcrash.sh: ulimit -c 0 && sh ${.CURDIR}/shcrash.sh @@ -14,6 +14,18 @@ varfunction.sh: eval.sh: test `sh ${.CURDIR}/eval.sh | wc -l` == 4 +eval2.sh: + # this should not print + test `sh ${.CURDIR}/eval2.sh|wc -c` == 0 + # and it should return an error + if ! sh ${.CURDIR}/eval2.sh >/dev/null; then true; else false; fi + +eval3.sh: + # this should not print + test `sh ${.CURDIR}/eval3.sh|wc -c` == 0 + # and it should return an error + if ! sh ${.CURDIR}/eval3.sh >/dev/null; then true; else false; fi + .PHONY: ${REGRESS_TARGETS} .include <bsd.regress.mk> diff --git a/regress/bin/ksh/eval2.sh b/regress/bin/ksh/eval2.sh new file mode 100644 index 00000000000..3d2c50af61d --- /dev/null +++ b/regress/bin/ksh/eval2.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# $OpenBSD: eval2.sh,v 1.1 2013/06/07 08:48:18 espie Exp $ + +set -e +true && false +echo "should not print" diff --git a/regress/bin/ksh/eval3.sh b/regress/bin/ksh/eval3.sh new file mode 100644 index 00000000000..590b08da3d8 --- /dev/null +++ b/regress/bin/ksh/eval3.sh @@ -0,0 +1,6 @@ +#!/bin/sh +# $OpenBSD: eval3.sh,v 1.1 2013/06/07 08:48:18 espie Exp $ + +set -e +false || false +echo "should not print" |