From e203695f7aaa58e0ffddd140380eb0ae670df79d Mon Sep 17 00:00:00 2001 From: bluhm Date: Fri, 24 Dec 2021 15:09:10 +0000 Subject: [PATCH] Run malloc_duel for 60 seconds instead of 20. It did find kernel crashes due to missing TLB flushes in the past. Other stress tests in regress also run for a minute. Additional 40 seconds to the run time of the test suite is a small price compared to higher chance of finding bugs. --- regress/lib/libpthread/malloc_duel/malloc_duel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/lib/libpthread/malloc_duel/malloc_duel.c b/regress/lib/libpthread/malloc_duel/malloc_duel.c index ad2b328bb92..18583961395 100644 --- a/regress/lib/libpthread/malloc_duel/malloc_duel.c +++ b/regress/lib/libpthread/malloc_duel/malloc_duel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc_duel.c,v 1.3 2019/05/15 18:53:03 otto Exp $ */ +/* $OpenBSD: malloc_duel.c,v 1.4 2021/12/24 15:09:10 bluhm Exp $ */ /* PUBLIC DOMAIN Nov 2002 */ /* @@ -66,7 +66,7 @@ main(int argc, char **argv) for (i = 0; i < NCHILDS; i++) CHECKr(pthread_create(&child[i], NULL, thread, NULL)); ASSERT(signal(SIGALRM, alarm_handler) != SIG_ERR); - CHECKe(alarm(20)); + CHECKe(alarm(60)); malloc_loop(); for (i = 0; i < NCHILDS; i++) CHECKr(pthread_join(child[i], NULL)); -- 2.20.1