diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-20 23:03:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-20 23:03:23 +0000 |
commit | 7ae1cc16b4ecec930cd776f9ed688b6d4d53a166 (patch) | |
tree | dea5f9edc2fabb62c126930df82e7e1b4d443b73 /shell/msh_test | |
parent | 2b68c8f74420c08ff3bb44d6745833ea715b6590 (diff) | |
download | busybox-w32-7ae1cc16b4ecec930cd776f9ed688b6d4d53a166.tar.gz busybox-w32-7ae1cc16b4ecec930cd776f9ed688b6d4d53a166.tar.bz2 busybox-w32-7ae1cc16b4ecec930cd776f9ed688b6d4d53a166.zip |
msh: fix "while...continue" bug 3884.
Diffstat (limited to 'shell/msh_test')
-rw-r--r-- | shell/msh_test/msh-execution/many_continues.right | 1 | ||||
-rwxr-xr-x | shell/msh_test/msh-execution/many_continues.tests | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/shell/msh_test/msh-execution/many_continues.right b/shell/msh_test/msh-execution/many_continues.right new file mode 100644 index 000000000..d86bac9de --- /dev/null +++ b/shell/msh_test/msh-execution/many_continues.right | |||
@@ -0,0 +1 @@ | |||
OK | |||
diff --git a/shell/msh_test/msh-execution/many_continues.tests b/shell/msh_test/msh-execution/many_continues.tests new file mode 100755 index 000000000..86c729abc --- /dev/null +++ b/shell/msh_test/msh-execution/many_continues.tests | |||
@@ -0,0 +1,15 @@ | |||
1 | if test $# = 0; then | ||
2 | # Child will kill us in 1 second | ||
3 | "$THIS_SH" "$0" $$ & | ||
4 | |||
5 | # Loop many, many times | ||
6 | trap 'echo OK; exit 0' 15 | ||
7 | while true; do | ||
8 | continue | ||
9 | done | ||
10 | echo BAD | ||
11 | exit 1 | ||
12 | fi | ||
13 | |||
14 | sleep 1 | ||
15 | kill $1 | ||