scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 61cec444584284bf3e9ca8aa8fbcbd442cbff56c
parent 50502b531fdc5fdfa39c5fe55ebdb69c942075b8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun,  6 Oct 2019 21:44:34 +0200

[tests/scc] Fix string handling

printf is not mandated to interpret escape sequences when it prints
%s formats.

Diffstat:
Mtests/scc/execute/chktest.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/scc/execute/chktest.sh b/tests/scc/execute/chktest.sh @@ -15,10 +15,10 @@ export SYS FORMAT ABI ARCH while read i state do echo $i >>test.log - state=${state:-"\t"} + state=${state:-""} rm -f a.out (scc -Isysinclude $CFLAGS "$i" && ./a.out) 2>>test.log && printf '[PASS]' || printf '[FAIL]' - printf '%s\t%s\n' "$state" "$i" + printf '\t%s\t%s\n' $i $state done < $file