Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/syscall As the Qemu clocks are not accurate, switch th...
details: https://anonhg.NetBSD.org/src/rev/04b29c077b2e
branches: trunk
changeset: 766947:04b29c077b2e
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon Jul 04 20:09:28 2011 +0000
description:
As the Qemu clocks are not accurate, switch the usleep(3) delays to sleep(1).
diffstat:
tests/syscall/t_pselect.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r ea3a9b6046df -r 04b29c077b2e tests/syscall/t_pselect.c
--- a/tests/syscall/t_pselect.c Mon Jul 04 16:20:45 2011 +0000
+++ b/tests/syscall/t_pselect.c Mon Jul 04 20:09:28 2011 +0000
@@ -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");
Home |
Main Index |
Thread Index |
Old Index