aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-18 16:13:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-18 16:13:56 +0200
commit42c4b2e3b535314ae8a7b65c3223afb26872d5a2 (patch)
tree8c0d1b5eef44dc9dbce6788fe41db1af22bbf470 /shell/ash_test
parentc7f95d23f6bc7e17a3b79decf83eb362b389e53a (diff)
downloadbusybox-w32-42c4b2e3b535314ae8a7b65c3223afb26872d5a2.tar.gz
busybox-w32-42c4b2e3b535314ae8a7b65c3223afb26872d5a2.tar.bz2
busybox-w32-42c4b2e3b535314ae8a7b65c3223afb26872d5a2.zip
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')
-rw-r--r--shell/ash_test/ash-vars/var_leak.right1
-rwxr-xr-xshell/ash_test/ash-vars/var_leak.tests7
2 files changed, 7 insertions, 1 deletions
diff --git a/shell/ash_test/ash-vars/var_leak.right b/shell/ash_test/ash-vars/var_leak.right
index be78112c8..01a5e3263 100644
--- a/shell/ash_test/ash-vars/var_leak.right
+++ b/shell/ash_test/ash-vars/var_leak.right
@@ -1,3 +1,4 @@
1should be empty: '' 1should be empty: ''
2should be empty: ''
2should be not empty: 'val2' 3should be not empty: 'val2'
3should be not empty: 'val3' 4should be not empty: 'val3'
diff --git a/shell/ash_test/ash-vars/var_leak.tests b/shell/ash_test/ash-vars/var_leak.tests
index 032059295..5242e24eb 100755
--- a/shell/ash_test/ash-vars/var_leak.tests
+++ b/shell/ash_test/ash-vars/var_leak.tests
@@ -1,6 +1,11 @@
1# true is a regular builtin, varibale should not leak out of it 1# cat is an external program, variable should not leak out of it.
2# this currently fails with CONFIG_FEATURE_SH_NOFORK=y 2# this currently fails with CONFIG_FEATURE_SH_NOFORK=y
3VAR='' 3VAR=''
4VAR=val0 cat /dev/null
5echo "should be empty: '$VAR'"
6
7# true is a regular builtin, variable should not leak out of it.
8VAR=''
4VAR=val1 true 9VAR=val1 true
5echo "should be empty: '$VAR'" 10echo "should be empty: '$VAR'"
6 11