diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-01-02 05:03:53 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-02-14 14:40:57 +0100 |
commit | 7dd6ba12f76d2affafac8e6173d0c995b3279e51 (patch) | |
tree | d13be59fcc4cd7fa3a91ecc6e7872219831b1b87 /testsuite/bc.tests | |
parent | f23c04af2d4575836cb5d9d1ea9176310ed633b5 (diff) | |
download | busybox-w32-7dd6ba12f76d2affafac8e6173d0c995b3279e51.tar.gz busybox-w32-7dd6ba12f76d2affafac8e6173d0c995b3279e51.tar.bz2 busybox-w32-7dd6ba12f76d2affafac8e6173d0c995b3279e51.zip |
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 '')
-rwxr-xr-x | testsuite/bc.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/bc.tests b/testsuite/bc.tests index 13525ea52..fbcfff2e4 100755 --- a/testsuite/bc.tests +++ b/testsuite/bc.tests | |||
@@ -149,6 +149,12 @@ testing "bc (!a&&b)" \ | |||
149 | "0\n" \ | 149 | "0\n" \ |
150 | "" "(!a&&b)" | 150 | "" "(!a&&b)" |
151 | 151 | ||
152 | # check that dc code is not messing this up (no NUL printing!) | ||
153 | testing "bc print \"\"" \ | ||
154 | "bc" \ | ||
155 | "" \ | ||
156 | "" "print \"\"" | ||
157 | |||
152 | testing "bc print 1,2,3" \ | 158 | testing "bc print 1,2,3" \ |
153 | "bc" \ | 159 | "bc" \ |
154 | "123" \ | 160 | "123" \ |