aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-07 09:37:14 +0000
committerRoy Marples <roy@marples.name>2008-04-07 09:37:14 +0000
commit594d98eddca016ef6f74f0a1d07ea4a8c70d193d (patch)
tree40070cc9502e977c4db15ea902bd9d42e76a5b80 /sh
parentdcdfdb442f436cd1f1bdfdc46622f5d6f48f8061 (diff)
Tests now work on NetBSD.
Diffstat (limited to 'sh')
-rwxr-xr-xsh/runtests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/runtests.sh b/sh/runtests.sh
index d0d6a17d..110266b3 100755
--- a/sh/runtests.sh
+++ b/sh/runtests.sh
@@ -9,17 +9,17 @@ tret=0
ebegin "Testing yesno()"
for f in yes YES Yes true TRUE True 1 ; do
if ! yesno ${f} ; then
- ((tret+=1))
+ tret=$((${tret} + 1))
echo "!${f}!"
fi
done
for f in no NO No false FALSE False 0 ; do
if yesno ${f} ; then
- ((tret+=1))
+ tret=$(({$tret} + 1))
echo "!${f}!"
fi
done
eend ${tret}
-((ret+=tret))
+ret=$((${ret} + ${tret}))
exit ${ret}