diff options
author | Denys Vlasenko | 2010-05-18 16:13:56 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-18 16:13:56 +0200 |
commit | 42c4b2e3b535314ae8a7b65c3223afb26872d5a2 (patch) | |
tree | 8c0d1b5eef44dc9dbce6788fe41db1af22bbf470 /shell/ash_test/ash-vars/var_leak.tests | |
parent | c7f95d23f6bc7e17a3b79decf83eb362b389e53a (diff) | |
download | busybox-42c4b2e3b535314ae8a7b65c3223afb26872d5a2.zip busybox-42c4b2e3b535314ae8a7b65c3223afb26872d5a2.tar.gz |
ash: fix var_leak.tests so that it actually catches the NOFORK bug
+ document the bug better
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars/var_leak.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/var_leak.tests | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/ash_test/ash-vars/var_leak.tests b/shell/ash_test/ash-vars/var_leak.tests index 0320592..5242e24 100755 --- a/shell/ash_test/ash-vars/var_leak.tests +++ b/shell/ash_test/ash-vars/var_leak.tests @@ -1,6 +1,11 @@ -# true is a regular builtin, varibale should not leak out of it +# cat is an external program, variable should not leak out of it. # this currently fails with CONFIG_FEATURE_SH_NOFORK=y VAR='' +VAR=val0 cat /dev/null +echo "should be empty: '$VAR'" + +# true is a regular builtin, variable should not leak out of it. +VAR='' VAR=val1 true echo "should be empty: '$VAR'" |