summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Hilaiel <lloyd@hilaiel.com>2013-01-28 20:51:11 -0700
committerLloyd Hilaiel <lloyd@hilaiel.com>2013-01-28 20:52:09 -0700
commit4c539cb5b48c41cecbbf3a0afcbd293de33abfc8 (patch)
tree839f02af803256c49c449bf27d53b0b132e51fea
parentabb2d1c4de28a96d838b55402240179556ad4fe7 (diff)
parent734aee05a16de1a7eed572f444f21d5f9a1e5034 (diff)
downloadyajl-4c539cb5b48c41cecbbf3a0afcbd293de33abfc8.tar.gz
Merge NetBSD build fix (no BASHisms) closes #90
-rwxr-xr-xtest/run_tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh
index 55a665b..af64e15 100755
--- a/test/run_tests.sh
+++ b/test/run_tests.sh
@@ -70,19 +70,19 @@ for file in cases/*.json ; do
$testBin $allowPartials $allowComments $allowGarbage $allowMultiple -b $iter < $file > ${file}.test 2>&1
diff ${DIFF_FLAGS} ${file}.gold ${file}.test > ${file}.out
if [ $? -eq 0 ] ; then
- if [ $iter -eq 31 ] ; then : $(( testsSucceeded += 1)) ; fi
+ if [ $iter -eq 31 ] ; then testsSucceeded=$(( $testsSucceeded + 1 )) ; fi
else
success="FAILURE"
iter=32
${ECHO}
cat ${file}.out
fi
- : $(( iter += 1 ))
+ iter=$(( iter + 1 ))
rm ${file}.test ${file}.out
done
${ECHO} $success
- : $(( testsTotal += 1 ))
+ testsTotal=$(( testsTotal + 1 ))
done
${ECHO} $testsSucceeded/$testsTotal tests successful