From 3b7d7ae0f3c29de4d8e7ff0d4487bc6f7913dc86 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 8 Aug 2023 16:38:20 +0100 Subject: [PATCH] Cygwin: testsuite: Add a small delay in kill01 Avoid transient failures by adding a small delay after fork()-ing to allow the child to get into a state where it can recieve signals. --- winsup/testsuite/winsup.api/ltp/kill01.c | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/testsuite/winsup.api/ltp/kill01.c b/winsup/testsuite/winsup.api/ltp/kill01.c index 042899173..58053eeb8 100644 --- a/winsup/testsuite/winsup.api/ltp/kill01.c +++ b/winsup/testsuite/winsup.api/ltp/kill01.c @@ -102,6 +102,7 @@ main(int ac, char **av) /*NOTREACHED*/ exit(exno); } else { + Sleep(1); TEST(kill(pid, TEST_SIG)); waitpid(pid, &status, 0); } -- 2.39.0