Skip to content
Browse files

sh: Add tests for some corner cases of 'case' exit status.

Obtained-from:  FreeBSD 228007
  • Loading branch information...
1 parent c7e5ca9 commit e0bacf25a6a39925638500fba80f672bda64a1e5 Peter Avalos committed Dec 25, 2011
Showing with 12 additions and 0 deletions.
  1. +6 −0 tools/regression/bin/sh/builtins/case11.0
  2. +6 −0 tools/regression/bin/sh/builtins/case12.0
View
6 tools/regression/bin/sh/builtins/case11.0
@@ -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
View
6 tools/regression/bin/sh/builtins/case12.0
@@ -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

0 comments on commit e0bacf2

Please sign in to comment.
Something went wrong with that request. Please try again.