scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit b5225423a6f068c95a96c56690b5fb2ecf692df3
parent 0fbca0d905ff742a06122e48433b1aae9d041677
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sat, 11 Mar 2017 12:05:54 +0100

[tests] Write file directly with ed in chktests.sh

Diffstat:
Mtests/error/chktest.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/error/chktest.sh b/tests/error/chktest.sh @@ -11,11 +11,11 @@ rm -f test.log while read i state do echo $i >> test.log - printf "%s\t" $i - printf "%s" $state + printf "%s\t" "$i" + printf "%s" "$state" scc $CFLAGS -w -c "$i" 2> $err - echo '/^PATTERN/+;/^\./-p' | ed -s $i > $chk - diff -c $chk $err >> test.log && echo [OK] || echo [FAILED] + echo "/^PATTERN/+;/^\./-w \"$chk\"" | ed -s "$i" + diff -c "$chk" "$err" >> test.log && echo [OK] || echo [FAILED] rm -f *.o done