summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-26 23:25:36 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-26 23:25:36 +0000
commit42e4af3119191ee822dbb0e7fdae94d4993fd0a2 (patch)
tree7b14af80965e0b04f44d72fb4e08c9f13fac2a13 /shell
parent28e67966f3fc0728fb2f923265a8b2275f410655 (diff)
downloadbusybox-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-xshell/hush_test/hush-z_slow/leak_var2.tests7
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 @@
1echo "Warm up"
1t=1 2t=1
2export t 3export t
3
4echo "Warm up"
5i=1 4i=1
6while test $i != X; do 5while 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
16done 15done
16unset t i
17 17
18memleak 18memleak
19 19
20echo "Measuring memory leak..." 20echo "Measuring memory leak..."
21t=1
22export t
21i=1 23i=1
22while test $i != X; do 24while 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
32done 34done
35unset t i
33 36
34memleak 37memleak
35kb=$? 38kb=$?