From 3468cc0dc5bc4337abf7042a3f7d26d81dc3121b Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 31 Aug 2023 11:13:33 +0200 Subject: [PATCH] tests: Allow killing processes to take more time. A too low timeout caused spurious self-test failures in pkd_hello_i1. Signed-off-by: Simon Josefsson Reviewed-by: Andreas Schneider Reviewed-by: Sahana Prasad --- tests/torture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/torture.c b/tests/torture.c index 22574f31..9c49a4fb 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -242,12 +242,12 @@ int torture_terminate_process(const char *pidfile) } assert_int_not_equal(pid, -1); - for (count = 0; count < 10; count++) { + for (count = 0; count < 500; count++) { /* Make sure the daemon goes away! */ kill(pid, SIGTERM); - /* 10 ms */ - usleep(10 * 1000); + /* 25 ms */ + usleep(25 * 1000); #ifdef HAVE_VALGRIND_VALGRIND_H if (RUNNING_ON_VALGRIND) { SSH_LOG(SSH_LOG_INFO, "Running within Valgrind, wait one more "