hush: add func6.tests
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 18:12:10 +0000 (20:12 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 1 Oct 2016 18:12:10 +0000 (20:12 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush_test/hush-misc/func6.right [new file with mode: 0644]
shell/hush_test/hush-misc/func6.tests [new file with mode: 0755]

diff --git a/shell/hush_test/hush-misc/func6.right b/shell/hush_test/hush-misc/func6.right
new file mode 100644 (file)
index 0000000..0ebd8e5
--- /dev/null
@@ -0,0 +1,2 @@
+Two:2
+Two:2
diff --git a/shell/hush_test/hush-misc/func6.tests b/shell/hush_test/hush-misc/func6.tests
new file mode 100755 (executable)
index 0000000..029c3e8
--- /dev/null
@@ -0,0 +1,11 @@
+f1() {
+       while return 2; do :; done
+}
+f1
+echo Two:$?
+
+f2() {
+       while :; do return 2; done
+}
+f2
+echo Two:$?