mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
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>
This commit is contained in:
parent
31df9fa8ff
commit
e6ce346d07
@ -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 };
|
||||
already-initialized random number generator. */
|
||||
enum { runs = 10 };
|
||||
|
||||
/* 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. */
|
||||
/* Total number of spawned processes on each run. */
|
||||
enum { subprocesses = 49 };
|
||||
|
||||
/* The total number of processes. */
|
||||
|
Loading…
Reference in New Issue
Block a user