diff options
author | Dmitry Atamanov <data-man@users.noreply.github.com> | 2017-10-28 10:25:56 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-28 09:25:56 +0200 |
commit | d2c7d391c8b69a6a590a2f702ed58bea033f6325 (patch) | |
tree | c74a1b46e1166ddb87453ddc49cea84e1baaa5ab /tinyc/tests/gcctestsuite.sh | |
parent | 9c00f6decd4453a4233450a60ccef05b20e9f24a (diff) | |
download | Nim-d2c7d391c8b69a6a590a2f702ed58bea033f6325.tar.gz |
TinyC upgrade (#6593)
Diffstat (limited to 'tinyc/tests/gcctestsuite.sh')
-rw-r--r-- | tinyc/tests/gcctestsuite.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyc/tests/gcctestsuite.sh b/tinyc/tests/gcctestsuite.sh index bd9204b2b..f3cc538de 100644 --- a/tinyc/tests/gcctestsuite.sh +++ b/tinyc/tests/gcctestsuite.sh @@ -8,11 +8,11 @@ nb_failed="0" for src in $TESTSUITE_PATH/compile/*.c ; do echo $TCC -o /tmp/test.o -c $src $TCC -o /tmp/test.o -c $src >> tcc.log 2>&1 - if [ "$?" == "0" ] ; then + if [ "$?" = "0" ] ; then result="PASS" else result="FAIL" - nb_failed=$[ $nb_failed + 1 ] + nb_failed=$(( $nb_failed + 1 )) fi echo "$result: $src" >> tcc.sum done @@ -20,11 +20,11 @@ done for src in $TESTSUITE_PATH/execute/*.c ; do echo $TCC $src $TCC $src >> tcc.log 2>&1 - if [ "$?" == "0" ] ; then + if [ "$?" = "0" ] ; then result="PASS" else result="FAIL" - nb_failed=$[ $nb_failed + 1 ] + nb_failed=$(( $nb_failed + 1 )) fi echo "$result: $src" >> tcc.sum done |