summaryrefslogtreecommitdiffhomepage
path: root/shell/ash_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-13 17:45:56 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-13 17:45:56 +0000
commit6d1ebecf65bd0af34bcfa2582c49e6810d7d4a35 (patch)
treeecc3a24dd56072b71f5ae50534fb53fb3bdb88b9 /shell/ash_test
parent24f824edb33597b8d43cc12f6b556cb6d3565b89 (diff)
ash: add another testsuite entry ("leaking variables" bug)
Diffstat (limited to 'shell/ash_test')
-rw-r--r--shell/ash_test/ash-vars/var_leak.right2
-rwxr-xr-xshell/ash_test/ash-vars/var_leak.tests9
2 files changed, 11 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_leak.right b/shell/ash_test/ash-vars/var_leak.right
new file mode 100644
index 000000000..45c5458dd
--- /dev/null
+++ b/shell/ash_test/ash-vars/var_leak.right
@@ -0,0 +1,2 @@
+should be empty: ''
+should be empty: ''
diff --git a/shell/ash_test/ash-vars/var_leak.tests b/shell/ash_test/ash-vars/var_leak.tests
new file mode 100755
index 000000000..1b1123fb7
--- /dev/null
+++ b/shell/ash_test/ash-vars/var_leak.tests
@@ -0,0 +1,9 @@
+# This currently fails with CONFIG_FEATURE_SH_NOFORK=y
+VAR=''
+VAR=qwe true
+echo "should be empty: '$VAR'"
+
+# This fails (always)
+VAR=''
+VAR=qwe exec 2>&1
+echo "should be empty: '$VAR'"