sh: Add tests for some corner cases of 'case' exit status.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:38:33 +0000 (09:38 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:38:33 +0000 (09:38 -0800)
Obtained-from:  FreeBSD 228007

tools/regression/bin/sh/builtins/case11.0 [new file with mode: 0644]
tools/regression/bin/sh/builtins/case12.0 [new file with mode: 0644]

diff --git a/tools/regression/bin/sh/builtins/case11.0 b/tools/regression/bin/sh/builtins/case11.0
new file mode 100644 (file)
index 0000000..5d56b49
--- /dev/null
@@ -0,0 +1,6 @@
+# $FreeBSD: src/tools/regression/bin/sh/builtins/case11.0,v 1.1 2011/11/26 22:28:25 jilles Exp $
+
+false
+case x in
+*)
+esac
diff --git a/tools/regression/bin/sh/builtins/case12.0 b/tools/regression/bin/sh/builtins/case12.0
new file mode 100644 (file)
index 0000000..70f0fc0
--- /dev/null
@@ -0,0 +1,6 @@
+# $FreeBSD: src/tools/regression/bin/sh/builtins/case12.0,v 1.1 2011/11/26 22:28:25 jilles Exp $
+
+false
+case x in
+y)
+esac