aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBrian Foley <bpfoley@google.com>2019-09-05 10:50:13 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-21 16:54:40 +0200
commit50ba92128b0a6472a3a85efaaa8ce3bfbda1bce5 (patch)
tree23c1ee796fac16978671f29dfb0e12f3039c61e6 /testsuite
parent4699b932446f809d747d97f8e24b5d48608f7276 (diff)
downloadbusybox-w32-50ba92128b0a6472a3a85efaaa8ce3bfbda1bce5.tar.gz
busybox-w32-50ba92128b0a6472a3a85efaaa8ce3bfbda1bce5.tar.bz2
busybox-w32-50ba92128b0a6472a3a85efaaa8ce3bfbda1bce5.zip
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')
-rwxr-xr-xtestsuite/dc.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/dc.tests b/testsuite/dc.tests
index f74e3f0f5..1fc13c201 100755
--- a/testsuite/dc.tests
+++ b/testsuite/dc.tests
@@ -54,6 +54,11 @@ testing "dc: x should not execute or pop non-strings" \
54 "42\n" \ 54 "42\n" \
55 "" "" 55 "" ""
56 56
57testing "dc: x should work with strings created from a" \
58 "dc -e'42 112 a x'" \
59 "42\n" \
60 "" ""
61
57testing "dc read" \ 62testing "dc read" \
58 "dc -finput" \ 63 "dc -finput" \
59 "2\n9\n1\n" \ 64 "2\n9\n1\n" \