aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-07-27 04:20:32 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-07-27 04:20:32 +0200
commitc450437a4e631378cd6a2dc06a5923ce811a950d (patch)
tree448ad0b6599a5365dedd8f78960957a722c0aecb /shell/hush_test
parent8dd676c6c3b862846a4a215f5f3a8822fcf8c569 (diff)
downloadbusybox-w32-c450437a4e631378cd6a2dc06a5923ce811a950d.tar.gz
busybox-w32-c450437a4e631378cd6a2dc06a5923ce811a950d.tar.bz2
busybox-w32-c450437a4e631378cd6a2dc06a5923ce811a950d.zip
shell: update psubst testcases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-psubst/falsetick.right3
-rwxr-xr-xshell/hush_test/hush-psubst/falsetick.tests3
-rw-r--r--shell/hush_test/hush-psubst/falsetick3.right3
-rwxr-xr-xshell/hush_test/hush-psubst/falsetick3.tests3
4 files changed, 6 insertions, 6 deletions
diff --git a/shell/hush_test/hush-psubst/falsetick.right b/shell/hush_test/hush-psubst/falsetick.right
index 0b98fb778..d2d1a2880 100644
--- a/shell/hush_test/hush-psubst/falsetick.right
+++ b/shell/hush_test/hush-psubst/falsetick.right
@@ -22,6 +22,3 @@ hush: can't open '/does/not/exist': No such file or directory
221 221
23hush: can't open '/does/not/exist': No such file or directory 23hush: can't open '/does/not/exist': No such file or directory
241 241
25hush: can't open '/does/not/exist': No such file or directory
261
27Done: a=b
diff --git a/shell/hush_test/hush-psubst/falsetick.tests b/shell/hush_test/hush-psubst/falsetick.tests
index 44d2eae8b..d2b93695e 100755
--- a/shell/hush_test/hush-psubst/falsetick.tests
+++ b/shell/hush_test/hush-psubst/falsetick.tests
@@ -17,6 +17,3 @@ true; a=`exit 2` >/does/not/exist; echo $?
17false; a=`exit 2` >/does/not/exist; echo $? 17false; a=`exit 2` >/does/not/exist; echo $?
18true; a=$(exit 2) >/does/not/exist; echo $? 18true; a=$(exit 2) >/does/not/exist; echo $?
19false; a=$(exit 2) >/does/not/exist; echo $? 19false; a=$(exit 2) >/does/not/exist; echo $?
20# ...and assignment still happens despite redirect error:
21true; a=$(echo b) >/does/not/exist; echo $?
22echo "Done: a=$a"
diff --git a/shell/hush_test/hush-psubst/falsetick3.right b/shell/hush_test/hush-psubst/falsetick3.right
new file mode 100644
index 000000000..327849a31
--- /dev/null
+++ b/shell/hush_test/hush-psubst/falsetick3.right
@@ -0,0 +1,3 @@
1hush: can't open '/does/not/exist': No such file or directory
21
3Done: a=b
diff --git a/shell/hush_test/hush-psubst/falsetick3.tests b/shell/hush_test/hush-psubst/falsetick3.tests
new file mode 100755
index 000000000..cd185335e
--- /dev/null
+++ b/shell/hush_test/hush-psubst/falsetick3.tests
@@ -0,0 +1,3 @@
1# assignment still happens despite redirect error
2true; a=$(echo b) >/does/not/exist; echo $?
3echo "Done: a=$a"