From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 1219D3858D20; Mon, 12 Jun 2023 17:58:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1219D3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686592709; bh=d3nXEAlN7yQGx9OYrvdNF0JavqMtI3XUasrty4F1z2w=; h=From:To:Subject:Date:From; b=fhPl3jhgMhPKXsnxjBQXjVPhKl0pY8McvGiOkjBmCHrJl6MSjnpqGipNXe+zZQves m4QpZaToQ8KGwidvn4EwJQKRASTqnDcfeurn5IYy2M1oUz1rqJ2xZd9eCXKMJ3x9K6 0kJS7cS6PWgjvKfVagvE7XB+iqlhe660hOw/o7l8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] stdlib: Tune down fork arc4random tests X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella Netto X-Git-Refname: refs/heads/master X-Git-Oldrev: 31df9fa8ff79ff5e5aeb245232e474ce21028b74 X-Git-Newrev: e6ce346d0791410a2e6ec9df1bc35e6acd4bca18 Message-Id: <20230612175829.1219D3858D20@sourceware.org> Date: Mon, 12 Jun 2023 17:58:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e6ce346d0791410a2e6ec9df1bc35e6acd4bca18 commit e6ce346d0791410a2e6ec9df1bc35e6acd4bca18 Author: Adhemerval Zanella Netto Date: Thu Jun 1 12:59:19 2023 -0300 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 Diff: --- stdlib/tst-arc4random-fork.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/stdlib/tst-arc4random-fork.c b/stdlib/tst-arc4random-fork.c index a69ec3968f..65d5893f5e 100644 --- a/stdlib/tst-arc4random-fork.c +++ b/stdlib/tst-arc4random-fork.c @@ -30,14 +30,10 @@ #include /* 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. */