diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-01 20:12:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-01 20:12:10 +0200 |
commit | a2633aa8197a866a7c00406f7eb7e9c9b4554166 (patch) | |
tree | e51091f44d6c76b5fdf1c6a1b77a449dc2f1e718 /shell | |
parent | 35ec818fa23b9c68572f871da5c325101009939a (diff) | |
download | busybox-a2633aa8197a866a7c00406f7eb7e9c9b4554166.tar.gz |
hush: add func6.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush_test/hush-misc/func6.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func6.tests | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/func6.right b/shell/hush_test/hush-misc/func6.right new file mode 100644 index 000000000..0ebd8e5a3 --- /dev/null +++ b/shell/hush_test/hush-misc/func6.right @@ -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 index 000000000..029c3e85e --- /dev/null +++ b/shell/hush_test/hush-misc/func6.tests @@ -0,0 +1,11 @@ +f1() { + while return 2; do :; done +} +f1 +echo Two:$? + +f2() { + while :; do return 2; done +} +f2 +echo Two:$? |