summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko2019-01-02 05:03:53 +0100
committerDenys Vlasenko2019-01-02 05:03:53 +0100
commit266bec8ba76898c5602e54fb3460c4af42f38af0 (patch)
treec25d57e7ed177c88fdb4cc254cee4d28e05801a3 /testsuite
parent2231468a2f28e99cb6b65dc40da044e37af16ed1 (diff)
downloadbusybox-266bec8ba76898c5602e54fb3460c4af42f38af0.zip
busybox-266bec8ba76898c5602e54fb3460c4af42f38af0.tar.gz
bc: speed up string printing, fix print ""
function old new delta static.esc - 9 +9 zxc_program_print 681 683 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 11/0) Total: 11 bytes text data bss dec hex filename 979144 485 7296 986925 f0f2d busybox_old 979062 485 7296 986843 f0edb busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bc.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests
index 13525ea..fbcfff2 100755
--- a/testsuite/bc.tests
+++ b/testsuite/bc.tests
@@ -149,6 +149,12 @@ testing "bc (!a&&b)" \
"0\n" \
"" "(!a&&b)"
+# check that dc code is not messing this up (no NUL printing!)
+testing "bc print \"\"" \
+ "bc" \
+ "" \
+ "" "print \"\""
+
testing "bc print 1,2,3" \
"bc" \
"123" \