summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-z_slow/leak_var2.tests
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/hush_test/hush-z_slow/leak_var2.tests
parent28e67966f3fc0728fb2f923265a8b2275f410655 (diff)
make leak test more robust by unsetting all vars
Diffstat (limited to 'shell/hush_test/hush-z_slow/leak_var2.tests')
-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 @@
+echo "Warm up"
t=1
export t
-
-echo "Warm up"
i=1
while test $i != X; do
t=111111111111111111111111111111111111111111111111111111111111111111111110$i
@@ -14,10 +13,13 @@ while test $i != X; do
if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
done
+unset t i
memleak
echo "Measuring memory leak..."
+t=1
+export t
i=1
while test $i != X; do
t=111111111111111111111111111111111111111111111111111111111111111111111110$i
@@ -30,6 +32,7 @@ while test $i != X; do
if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
done
+unset t i
memleak
kb=$?