scc

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

commit dd2b510053f9b9bfd2eb4f249d493b5f42c3c489
parent 3300cf3d3e2a83b6b6c438fd40b8a9a6b164900e
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Mon, 16 Feb 2026 11:07:29 +0100

tests/cc: Use diff -u

Diff -u generates diff files easier to understand.

Diffstat:
Mtests/cc/error/chktest.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cc/error/chktest.sh b/tests/cc/error/chktest.sh @@ -15,7 +15,7 @@ do (SCCPREFIX=$SCCPREFIX $CC $CFLAGS -W -c $i) 2> $err (echo "/^PATTERN/+;/^\./-w $chk" | ed -s $i) >/dev/null 2>&1 - (diff -c $chk $err >> test.log && printf '[PASS]' || printf '[FAIL]' + (diff -u $chk $err >> test.log && printf '[PASS]' || printf '[FAIL]' printf "\t%s\t%s\n" $i $state) | tee -a test.log rm -f *.o done < $file