From 266bec8ba76898c5602e54fb3460c4af42f38af0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 2 Jan 2019 05:03:53 +0100 Subject: 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 --- testsuite/bc.tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuite') 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)" \ "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" \ -- cgit v1.2.3