Skip to contentSkip to conversation

pipe13: Increase time to wait for child processes to terminate

PATCH New Joerg Vehlow 2 participants 2 messages Nov 16, 2020 – Nov 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pipe13: Increase time to wait for child processes to terminate

From: Joerg Vehlow <[email protected]>

If the system is not fast enough, to clean up
the child processes, the test shows a false negative result.

---
 testcases/kernel/syscalls/pipe/pipe13.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/pipe/pipe13.c +1 -1
index 4e6777e63..5d76e1f00 100644
@@ -60,7 +60,7 @@ static void verify_pipe(unsigned int n)
 	SAFE_CLOSE(fds[0]);
 	SAFE_CLOSE(fds[1]);
 
-	while (cnt < child_num && sleep_us < 100000) {
+	while (cnt < child_num && sleep_us < 1000000) {
 		ret = waitpid(-1, NULL, WNOHANG);
 		if (ret < 0)
 			tst_brk(TBROK | TERRNO, "waitpid()");
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 pipe13: Increase time to wait for child processes to terminate

Hi Joerg

Quoted 4 lines

From: Joerg Vehlow<[email protected]>

If the system is not fast enough, to clean up
the child processes, the test shows a false negative result.

Pushed, thanks.

Best Regards
Yang Xu