From 42c4b2e3b535314ae8a7b65c3223afb26872d5a2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 18 May 2010 16:13:56 +0200 Subject: ash: fix var_leak.tests so that it actually catches the NOFORK bug + document the bug better Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-vars/var_leak.right | 1 + shell/ash_test/ash-vars/var_leak.tests | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'shell/ash_test/ash-vars') 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 @@ should be empty: '' +should be empty: '' should be not empty: 'val2' should 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 @@ -# 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'" -- cgit v1.2.3