shithub: scc

Download patch

ref: 5be74533f06c1f6ba0f8728fb8aa43b812776d73
parent: 52a8cb1286def724462a79e2fcb097b22b37de42
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Jun 23 05:03:21 EDT 2016

[cc1] Simplify chktest.sh

--- a/cc1/tests/chktest.sh
+++ b/cc1/tests/chktest.sh
@@ -22,10 +22,5 @@
 	../cc1 -I. -w $i > $out 2>$err
 	echo $i >> test.log
 	cat $err $out > $tst
-	if diff -c $chk $tst >> test.log
-	then
-		echo [OK]
-	else
-		echo [FAILED]
-	fi
+	diff -c $chk $tst >> test.log && echo [OK] || echo [FAILED]
 done