Module Name: src Committed By: jruoho Date: Mon Jul 4 20:09:29 UTC 2011
Modified Files: src/tests/syscall: t_pselect.c Log Message: As the Qemu clocks are not accurate, switch the usleep(3) delays to sleep(1). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/syscall/t_pselect.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/syscall/t_pselect.c diff -u src/tests/syscall/t_pselect.c:1.4 src/tests/syscall/t_pselect.c:1.5 --- src/tests/syscall/t_pselect.c:1.4 Sun May 29 22:12:32 2011 +++ src/tests/syscall/t_pselect.c Mon Jul 4 20:09:28 2011 @@ -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 @@ 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");