aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test')
-rwxr-xr-xshell/hush_test/hush-z_slow/leak_all1.tests9
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/hush_test/hush-z_slow/leak_all1.tests b/shell/hush_test/hush-z_slow/leak_all1.tests
index 4e3c4fdec..f8207cf04 100755
--- a/shell/hush_test/hush-z_slow/leak_all1.tests
+++ b/shell/hush_test/hush-z_slow/leak_all1.tests
@@ -64,7 +64,7 @@ HERE
64 trap "echo trap$i" WINCH 64 trap "echo trap$i" WINCH
65 f() { true; true; true; true; true; true; true; true; } 65 f() { true; true; true; true; true; true; true; true; }
66 f() { true; true; true; true; true; true; true; true; echo $1; } 66 f() { true; true; true; true; true; true; true; true; echo $1; }
67 f >/dev/null 67 i=iii$i t=ttt$i z=zzz$i f >/dev/null
68 : $((i++)) 68 : $((i++))
69done 69done
70unset i l t 70unset i l t
@@ -132,7 +132,7 @@ HERE
132 trap "echo trap$i" WINCH 132 trap "echo trap$i" WINCH
133 f() { true; true; true; true; true; true; true; true; } 133 f() { true; true; true; true; true; true; true; true; }
134 f() { true; true; true; true; true; true; true; true; echo $1; } 134 f() { true; true; true; true; true; true; true; true; echo $1; }
135 f >/dev/null 135 i=iii$i t=ttt$i z=zzz$i f >/dev/null
136 : $((i++)) 136 : $((i++))
137done 137done
138unset i l t 138unset i l t
@@ -141,9 +141,8 @@ unset -f f
141 141
142memleak 142memleak
143kb=$? 143kb=$?
144# Observed some variability, bumped to 12k 144if test $kb -le 4; then
145if test $kb -le 12; then
146 echo Ok #$kb 145 echo Ok #$kb
147else 146else
148 echo "Bad: $kb kb (or more) leaked" 147 echo "Bad: $kb kb leaked"
149fi 148fi