aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-11 10:37:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-11 10:37:10 +0000
commited055214bba86644e1c2168b0e1d1bd7fa82a93c (patch)
treea22b8eb401d5d6ed57cf7e8bfff1adb95af67f23 /shell/hush_test
parent75bccfa375564337bfbd57e5d54f92e155a0b18b (diff)
downloadbusybox-ed055214bba86644e1c2168b0e1d1bd7fa82a93c.tar.gz
hush: fix "while...do f1() {a;}; f1; f1 {b;}; f1; done" bug
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-xshell/hush_test/hush-z_slow/leak_all1.tests6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/hush_test/hush-z_slow/leak_all1.tests b/shell/hush_test/hush-z_slow/leak_all1.tests
index 4c9d41afb..21fdb0d1e 100755
--- a/shell/hush_test/hush-z_slow/leak_all1.tests
+++ b/shell/hush_test/hush-z_slow/leak_all1.tests
@@ -62,7 +62,8 @@ HERE
echo >/dev/null ${var%%*}
set -- par1_$i par2_$i par3_$i par4_$i
trap "echo trap$i" WINCH
- f() { echo $1; }
+ f() { true; true; true; true; true; true; true; true; }
+ f() { true; true; true; true; true; true; true; true; echo $1; }
f >/dev/null
: $((i++))
done
@@ -127,7 +128,8 @@ HERE
echo >/dev/null ${var%%*}
set -- par1_$i par2_$i par3_$i par4_$i
trap "echo trap$i" WINCH
- f() { echo $1; }
+ f() { true; true; true; true; true; true; true; true; }
+ f() { true; true; true; true; true; true; true; true; echo $1; }
f >/dev/null
: $((i++))
done