tests/setup.sh: allow testsuite to fail properly with POSIX standard shells

The "((expr))" construct is not implemented by e.g. dash, so this commit
replaces the construct with a more portable one.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Bu işleme şunda yer alıyor:
Lars Hjemli 2008-12-06 12:03:54 +01:00
ebeveyn 2755af6e29
işleme b6faa78091

Dosyayı Görüntüle

@ -113,7 +113,7 @@ run_test()
then
printf " %2d) %-60s [ok]\n" $test_count "$desc"
else
((test_failed++))
test_failed=$(expr $test_failed + 1)
printf " %2d) %-60s [failed]\n" $test_count "$desc"
fi
}