aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2023-06-01 12:59:19 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-06-12 14:45:16 -0300
commite6ce346d0791410a2e6ec9df1bc35e6acd4bca18 (patch)
treec807696808f1301603163a539325a0aa8c0152d5 /stdlib
parent31df9fa8ff79ff5e5aeb245232e474ce21028b74 (diff)
downloadglibc-e6ce346d0791410a2e6ec9df1bc35e6acd4bca18.zip
glibc-e6ce346d0791410a2e6ec9df1bc35e6acd4bca18.tar.gz
glibc-e6ce346d0791410a2e6ec9df1bc35e6acd4bca18.tar.bz2
stdlib: Tune down fork arc4random tests
There is no fork detection on current arc4random implementation, so use lower subprocess on fork tests. The tests now run on 0.1s instead of 8s on a Ryzen9 5900X. Checked on x86_64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-arc4random-fork.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/stdlib/tst-arc4random-fork.c b/stdlib/tst-arc4random-fork.c
index a69ec39..65d5893 100644
--- a/stdlib/tst-arc4random-fork.c
+++ b/stdlib/tst-arc4random-fork.c
@@ -30,14 +30,10 @@
#include <unistd.h>
/* Perform multiple runs. The subsequent runs start with an
- already-initialized random number generator. (The number 1500 was
- seen to reproduce failures reliable in case of a race condition in
- the fork detection code.) */
-enum { runs = 1500 };
-
-/* One hundred processes in total. This should be high enough to
- expose any issues, but low enough not to tax the overall system too
- much. */
+ already-initialized random number generator. */
+enum { runs = 10 };
+
+/* Total number of spawned processes on each run. */
enum { subprocesses = 49 };
/* The total number of processes. */