scc

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

commit d554870c3e01554b2f845de5603d147a5294e477
parent cd264c79137ceddf549b4f7e24bd6e8e98ea9f0d
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