summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko2019-01-02 05:03:53 +0100
committerDenys Vlasenko2019-02-14 14:40:57 +0100
commit7dd6ba12f76d2affafac8e6173d0c995b3279e51 (patch)
treed13be59fcc4cd7fa3a91ecc6e7872219831b1b87 /testsuite
parentf23c04af2d4575836cb5d9d1ea9176310ed633b5 (diff)
downloadbusybox-7dd6ba12f76d2affafac8e6173d0c995b3279e51.zip
busybox-7dd6ba12f76d2affafac8e6173d0c995b3279e51.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" \