diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-26 23:25:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-26 23:25:36 +0000 |
commit | 42e4af3119191ee822dbb0e7fdae94d4993fd0a2 (patch) | |
tree | 7b14af80965e0b04f44d72fb4e08c9f13fac2a13 /shell | |
parent | 28e67966f3fc0728fb2f923265a8b2275f410655 (diff) | |
download | busybox-w32-42e4af3119191ee822dbb0e7fdae94d4993fd0a2.tar.gz busybox-w32-42e4af3119191ee822dbb0e7fdae94d4993fd0a2.tar.bz2 busybox-w32-42e4af3119191ee822dbb0e7fdae94d4993fd0a2.zip |
make leak test more robust by unsetting all vars
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/hush_test/hush-z_slow/leak_var2.tests | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/hush_test/hush-z_slow/leak_var2.tests b/shell/hush_test/hush-z_slow/leak_var2.tests index 0ab131552..611666cad 100755 --- a/shell/hush_test/hush-z_slow/leak_var2.tests +++ b/shell/hush_test/hush-z_slow/leak_var2.tests | |||
@@ -1,7 +1,6 @@ | |||
1 | echo "Warm up" | ||
1 | t=1 | 2 | t=1 |
2 | export t | 3 | export t |
3 | |||
4 | echo "Warm up" | ||
5 | i=1 | 4 | i=1 |
6 | while test $i != X; do | 5 | while test $i != X; do |
7 | t=111111111111111111111111111111111111111111111111111111111111111111111110$i | 6 | t=111111111111111111111111111111111111111111111111111111111111111111111110$i |
@@ -14,10 +13,13 @@ while test $i != X; do | |||
14 | if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi | 13 | if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi |
15 | if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi | 14 | if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi |
16 | done | 15 | done |
16 | unset t i | ||
17 | 17 | ||
18 | memleak | 18 | memleak |
19 | 19 | ||
20 | echo "Measuring memory leak..." | 20 | echo "Measuring memory leak..." |
21 | t=1 | ||
22 | export t | ||
21 | i=1 | 23 | i=1 |
22 | while test $i != X; do | 24 | while test $i != X; do |
23 | t=111111111111111111111111111111111111111111111111111111111111111111111110$i | 25 | t=111111111111111111111111111111111111111111111111111111111111111111111110$i |
@@ -30,6 +32,7 @@ while test $i != X; do | |||
30 | if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi | 32 | if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi |
31 | if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi | 33 | if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi |
32 | done | 34 | done |
35 | unset t i | ||
33 | 36 | ||
34 | memleak | 37 | memleak |
35 | kb=$? | 38 | kb=$? |