diff options
author | Petri Lehtinen <petri@digip.org> | 2014-10-03 08:49:03 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2014-10-03 08:49:08 +0300 |
commit | d7a6269a17912b10005875c86b5c1fd7bf3e3af4 (patch) | |
tree | ed50620245fa3a8ad1a741e7680c92198ea08b63 /test | |
parent | 7fbe7c3960185cc08f9046e869b50fad26f168ec (diff) | |
download | jansson-d7a6269a17912b10005875c86b5c1fd7bf3e3af4.zip jansson-d7a6269a17912b10005875c86b5c1fd7bf3e3af4.tar.gz jansson-d7a6269a17912b10005875c86b5c1fd7bf3e3af4.tar.bz2 |
Use expr instead of $((...)) in shell scripts
For Solaris 10 compatibility.
Diffstat (limited to 'test')
-rwxr-xr-x | test/run-suites | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run-suites b/test/run-suites index 4cbaa8b..fd1b89b 100755 --- a/test/run-suites +++ b/test/run-suites @@ -34,15 +34,15 @@ failed=0 for suite in $SUITES; do echo "Suite: $suite" if $suites_srcdir/$suite/run $suite; then - passed=$(($passed+1)) + passed=`expr $passed + 1` else - failed=$(($failed+1)) + failed=`expr $failed + 1` [ $STOP -eq 1 ] && break fi done if [ $failed -gt 0 ]; then - echo "$failed of $((passed+failed)) test suites failed" + echo "$failed of `expr $passed + $failed` test suites failed" exit 1 else echo "$passed test suites passed" |