summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2020-09-03 19:13:58 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2020-09-03 20:42:36 +0200
commit8cfee938f61d92eec65d0503766681389220bb4c (patch)
treeaebc303cea838c9de1c37a01c814c33e04bbc0e2
parent424dd1c7f4194bfa18bb29cccd39fe8b4fa38645 (diff)
downloadstrace-8cfee938f61d92eec65d0503766681389220bb4c.tar.gz
tests: reduce looping_threads iteration duration to 1/16th of TIMEOUT_DURATION
* tests/looping_threads.test (timeout_8): Rename to... (timeout_16): ...this, reduce value by half. Use $timeout_16 instead of $timeout_8. Complements: v5.7~4 "tests: increase default TIMEOUT_DURATION"
-rwxr-xr-xtests/looping_threads.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/looping_threads.test b/tests/looping_threads.test
index 96f0a2693..3e5d3ba9c 100755
--- a/tests/looping_threads.test
+++ b/tests/looping_threads.test
@@ -20,16 +20,16 @@ inc="$(nproc)"
[ "$inc" -ge 1 ] || inc=1
timeout_2="$(($TIMEOUT_DURATION/2))"
-timeout_8="$(($TIMEOUT_DURATION/8))"
+timeout_16="$(($TIMEOUT_DURATION/16))"
nproc=1
-run_prog "../$NAME" "$timeout_8" "$nproc"
+run_prog "../$NAME" "$timeout_16" "$nproc"
while :; do
run_strace --follow-forks -qq -enone -esignal=none "../$NAME" "$timeout_2" "$nproc"
s1="$(date +%s)"
- [ "$(($s1-$s0))" -lt "$timeout_8" ] ||
+ [ "$(($s1-$s0))" -lt "$timeout_16" ] ||
break
nproc="$(($nproc+$inc))"