summaryrefslogtreecommitdiff
path: root/testsuite/dc.tests
diff options
context:
space:
mode:
authorBrian Foley2019-09-05 10:50:13 +0200
committerDenys Vlasenko2019-09-05 10:50:13 +0200
commitb64470be177314e8473fae6c32cab51cacb89fa7 (patch)
tree046c39f3f8a4b9c5aa4234df7601e6f2f468e642 /testsuite/dc.tests
parent7454879a1d9e3948a9af21e31e9d59d5ae8b89f2 (diff)
downloadbusybox-b64470be177314e8473fae6c32cab51cacb89fa7.zip
busybox-b64470be177314e8473fae6c32cab51cacb89fa7.tar.gz
dc: Fix segfault when executing strings generated using asciify
function old new delta zxc_vm_process 6884 6891 +7 Signed-off-by: Brian Foley <bpfoley@google.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/dc.tests')
-rwxr-xr-xtestsuite/dc.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/dc.tests b/testsuite/dc.tests
index f74e3f0..1fc13c2 100755
--- a/testsuite/dc.tests
+++ b/testsuite/dc.tests
@@ -54,6 +54,11 @@ testing "dc: x should not execute or pop non-strings" \
"42\n" \
"" ""
+testing "dc: x should work with strings created from a" \
+ "dc -e'42 112 a x'" \
+ "42\n" \
+ "" ""
+
testing "dc read" \
"dc -finput" \
"2\n9\n1\n" \