From a5e27424dde6d6ce95edca039b33272e84a9ddb0 Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Sun, 23 Nov 2008 20:27:03 +0000 Subject: [PATCH] Add a test for r185231. --- tools/regression/bin/sh/parameters/exitstatus1.0 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tools/regression/bin/sh/parameters/exitstatus1.0 diff --git a/tools/regression/bin/sh/parameters/exitstatus1.0 b/tools/regression/bin/sh/parameters/exitstatus1.0 new file mode 100644 index 000000000000..696823d58043 --- /dev/null +++ b/tools/regression/bin/sh/parameters/exitstatus1.0 @@ -0,0 +1,9 @@ +# $FreeBSD$ +f() { + [ $? = $1 ] || exit 1 +} + +true +f 0 +false +f 1