diff options
Diffstat (limited to 'shell/hush_test')
| -rwxr-xr-x | shell/hush_test/hush-z_slow/leak_all1.tests | 9 |
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++)) |
| 69 | done | 69 | done |
| 70 | unset i l t | 70 | unset 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++)) |
| 137 | done | 137 | done |
| 138 | unset i l t | 138 | unset i l t |
| @@ -141,9 +141,8 @@ unset -f f | |||
| 141 | 141 | ||
| 142 | memleak | 142 | memleak |
| 143 | kb=$? | 143 | kb=$? |
| 144 | # Observed some variability, bumped to 12k | 144 | if test $kb -le 4; then |
| 145 | if test $kb -le 12; then | ||
| 146 | echo Ok #$kb | 145 | echo Ok #$kb |
| 147 | else | 146 | else |
| 148 | echo "Bad: $kb kb (or more) leaked" | 147 | echo "Bad: $kb kb leaked" |
| 149 | fi | 148 | fi |
