Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/kernel Double the nanosleep() time to make the test wo...



details:   https://anonhg.NetBSD.org/src/rev/d0f50a57ff0d
branches:  trunk
changeset: 828754:d0f50a57ff0d
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Dec 30 17:06:27 2017 +0000

description:
Double the nanosleep() time to make the test work more reliably on my
dual CPU alpha (where previously we sometimes ended up with no delay
at all).

diffstat:

 tests/kernel/t_timeleft.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6a8f16844b87 -r d0f50a57ff0d tests/kernel/t_timeleft.c
--- a/tests/kernel/t_timeleft.c Sat Dec 30 16:53:34 2017 +0000
+++ b/tests/kernel/t_timeleft.c Sat Dec 30 17:06:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_timeleft.c,v 1.1 2017/12/08 01:19:29 christos Exp $ */
+/* $NetBSD: t_timeleft.c,v 1.2 2017/12/30 17:06:27 martin Exp $ */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_timeleft.c,v 1.1 2017/12/08 01:19:29 christos Exp $");
+__RCSID("$NetBSD: t_timeleft.c,v 1.2 2017/12/30 17:06:27 martin Exp $");
 
 #include <sys/types.h>
 #include <sys/select.h>
@@ -84,7 +84,7 @@
 tester(void (*fun)(struct timespec *))
 {
        const struct timespec ts = { 5, 0 };
-       const struct timespec sts = { 0, 1000000 };
+       const struct timespec sts = { 0, 2000000 };
        struct info i = { fun, ts };
        pthread_t thr;
 



Home | Main Index | Thread Index | Old Index