summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-z_slow/leak_all1.tests
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-10 23:48:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-10 23:48:03 +0000
commit75bccfa375564337bfbd57e5d54f92e155a0b18b (patch)
tree87ca1e51928e8838379ff1683d990f259e87de43 /shell/hush_test/hush-z_slow/leak_all1.tests
parentce4acbbab664e9ab3432189f88b525f10553f674 (diff)
hush: tweak tests
Diffstat (limited to 'shell/hush_test/hush-z_slow/leak_all1.tests')
-rwxr-xr-xshell/hush_test/hush-z_slow/leak_all1.tests74
1 files changed, 73 insertions, 1 deletions
diff --git a/shell/hush_test/hush-z_slow/leak_all1.tests b/shell/hush_test/hush-z_slow/leak_all1.tests
index d244744a6..4c9d41afb 100755
--- a/shell/hush_test/hush-z_slow/leak_all1.tests
+++ b/shell/hush_test/hush-z_slow/leak_all1.tests
@@ -25,6 +25,41 @@ HERE
{ true; }; echo Doesnt run too >>/foo/bar
fi
{ : /bin/*; }
+ unset var
+ echo >/dev/null ${var#}
+ echo >/dev/null ${var##}
+ echo >/dev/null ${var#*}
+ echo >/dev/null ${var##*}
+ echo >/dev/null ${var%}
+ echo >/dev/null ${var%%}
+ echo >/dev/null ${var%*}
+ echo >/dev/null ${var%%*}
+ var=
+ echo >/dev/null ${var#}
+ echo >/dev/null ${var##}
+ echo >/dev/null ${var#*}
+ echo >/dev/null ${var##*}
+ echo >/dev/null ${var%}
+ echo >/dev/null ${var%%}
+ echo >/dev/null ${var%*}
+ echo >/dev/null ${var%%*}
+ var=ababcdcd
+ echo >/dev/null ${var#ab}
+ echo >/dev/null ${var##ab}
+ echo >/dev/null ${var#a*b}
+ echo >/dev/null ${var##a*b}
+ echo >/dev/null ${var#?}
+ echo >/dev/null ${var##?}
+ echo >/dev/null ${var#*}
+ echo >/dev/null ${var##*}
+ echo >/dev/null ${var%cd}
+ echo >/dev/null ${var%%cd}
+ echo >/dev/null ${var%c*d}
+ echo >/dev/null ${var%%c*d}
+ echo >/dev/null ${var%?}
+ echo >/dev/null ${var%%?}
+ echo >/dev/null ${var%*}
+ echo >/dev/null ${var%%*}
set -- par1_$i par2_$i par3_$i par4_$i
trap "echo trap$i" WINCH
f() { echo $1; }
@@ -55,6 +90,41 @@ HERE
{ true; }; echo Doesnt run too >>/foo/bar
fi
{ : /bin/*; }
+ unset var
+ echo >/dev/null ${var#}
+ echo >/dev/null ${var##}
+ echo >/dev/null ${var#*}
+ echo >/dev/null ${var##*}
+ echo >/dev/null ${var%}
+ echo >/dev/null ${var%%}
+ echo >/dev/null ${var%*}
+ echo >/dev/null ${var%%*}
+ var=
+ echo >/dev/null ${var#}
+ echo >/dev/null ${var##}
+ echo >/dev/null ${var#*}
+ echo >/dev/null ${var##*}
+ echo >/dev/null ${var%}
+ echo >/dev/null ${var%%}
+ echo >/dev/null ${var%*}
+ echo >/dev/null ${var%%*}
+ var=ababcdcd
+ echo >/dev/null ${var#ab}
+ echo >/dev/null ${var##ab}
+ echo >/dev/null ${var#a*b}
+ echo >/dev/null ${var##a*b}
+ echo >/dev/null ${var#?}
+ echo >/dev/null ${var##?}
+ echo >/dev/null ${var#*}
+ echo >/dev/null ${var##*}
+ echo >/dev/null ${var%cd}
+ echo >/dev/null ${var%%cd}
+ echo >/dev/null ${var%c*d}
+ echo >/dev/null ${var%%c*d}
+ echo >/dev/null ${var%?}
+ echo >/dev/null ${var%%?}
+ echo >/dev/null ${var%*}
+ echo >/dev/null ${var%%*}
set -- par1_$i par2_$i par3_$i par4_$i
trap "echo trap$i" WINCH
f() { echo $1; }
@@ -62,9 +132,11 @@ HERE
: $((i++))
done
+
memleak
kb=$?
-if test $kb -le 4; then
+# Observed some variability, bumped to 12k
+if test $kb -le 12; then
echo Ok #$kb
else
echo "Bad: $kb kb (or more) leaked"