commit f02dd2e8df49bc1d82e35dcd26f5b12d1293b422
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Jun 23 09:03:21 2016 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Jun 23 09:03:21 2016 +0200

    [cc1] Simplify chktest.sh

diff --git a/cc1/tests/chktest.sh b/cc1/tests/chktest.sh
index 7310db7..1531611 100755
--- a/cc1/tests/chktest.sh
+++ b/cc1/tests/chktest.sh
@@ -22,10 +22,5 @@ do
        ../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

Reply via email to