From e2676bb856c79c9010ef726d701bc3c5d3fc804b Mon Sep 17 00:00:00 2001 From: jruoho Date: Mon, 4 Jul 2011 20:09:28 +0000 Subject: [PATCH] As the Qemu clocks are not accurate, switch the usleep(3) delays to sleep(1). --- tests/syscall/t_pselect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/syscall/t_pselect.c b/tests/syscall/t_pselect.c index ead85733d59a..ee1e5af3423d 100644 --- a/tests/syscall/t_pselect.c +++ b/tests/syscall/t_pselect.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_pselect.c,v 1.4 2011/05/29 22:12:32 christos Exp $ */ +/* $NetBSD: t_pselect.c,v 1.5 2011/07/04 20:09:28 jruoho Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -151,10 +151,10 @@ ATF_TC_BODY(pselect_signal_mask_with_signal, tc) case -1: err(1, "fork"); default: - usleep(10000); + sleep(1); if (kill(pid, SIGTERM) == -1) err(1, "kill"); - usleep(500); + sleep(1); switch (waitpid(pid, &status, WNOHANG)) { case -1: err(1, "wait");