aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/errors
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2018-11-27 21:49:59 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2018-11-27 21:49:59 +0000
commit77da4a95e81a3d27991a2d2af5a93fcdbd4c7cf7 (patch)
treee2a0d805f2cfea47de6db3395da0d4e6d131fd24 /bin/sh/tests/errors
parent32b083531ff504a49e03be47059d4bd53d518e8a (diff)
Notes
Diffstat (limited to 'bin/sh/tests/errors')
-rw-r--r--bin/sh/tests/errors/Makefile1
-rw-r--r--bin/sh/tests/errors/script-error1.05
2 files changed, 6 insertions, 0 deletions
diff --git a/bin/sh/tests/errors/Makefile b/bin/sh/tests/errors/Makefile
index 868f43599973..5f8d16d22295 100644
--- a/bin/sh/tests/errors/Makefile
+++ b/bin/sh/tests/errors/Makefile
@@ -30,6 +30,7 @@ ${PACKAGE}FILES+= redirection-error5.0
${PACKAGE}FILES+= redirection-error6.0
${PACKAGE}FILES+= redirection-error7.0
${PACKAGE}FILES+= redirection-error8.0
+${PACKAGE}FILES+= script-error1.0
${PACKAGE}FILES+= write-error1.0
.include <bsd.test.mk>
diff --git a/bin/sh/tests/errors/script-error1.0 b/bin/sh/tests/errors/script-error1.0
new file mode 100644
index 000000000000..558d9007353f
--- /dev/null
+++ b/bin/sh/tests/errors/script-error1.0
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+{ stderr=$(${SH} /var/empty/nosuchscript 2>&1 >&3); } 3>&1
+r=$?
+[ -n "$stderr" ] && [ "$r" = 127 ]