summaryrefslogtreecommitdiff
path: root/tests/looping_threads.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/looping_threads.test')
-rwxr-xr-xtests/looping_threads.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/looping_threads.test b/tests/looping_threads.test
index 3e5d3ba9c..7e5f11a3b 100755
--- a/tests/looping_threads.test
+++ b/tests/looping_threads.test
@@ -19,8 +19,8 @@ check_prog nproc
inc="$(nproc)"
[ "$inc" -ge 1 ] || inc=1
-timeout_2="$(($TIMEOUT_DURATION/2))"
-timeout_16="$(($TIMEOUT_DURATION/16))"
+timeout_2="$((TIMEOUT_DURATION/2))"
+timeout_16="$((TIMEOUT_DURATION/16))"
nproc=1
run_prog "../$NAME" "$timeout_16" "$nproc"
@@ -29,10 +29,10 @@ while :; do
run_strace --follow-forks -qq -enone -esignal=none "../$NAME" "$timeout_2" "$nproc"
s1="$(date +%s)"
- [ "$(($s1-$s0))" -lt "$timeout_16" ] ||
+ [ "$((s1-s0))" -lt "$timeout_16" ] ||
break
- nproc="$(($nproc+$inc))"
+ nproc="$((nproc+inc))"
done
-warn_ "$ME_: nproc=$nproc elapsed=$(($s1-$s0))"
+warn_ "$ME_: nproc=$nproc elapsed=$((s1-s0))"