Module Name: src
Committed By: martin
Date: Sat Dec 30 17:06:27 UTC 2017
Modified Files:
src/tests/kernel: t_timeleft.c
Log Message:
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).
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/t_timeleft.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/kernel/t_timeleft.c
diff -u src/tests/kernel/t_timeleft.c:1.1 src/tests/kernel/t_timeleft.c:1.2
--- src/tests/kernel/t_timeleft.c:1.1 Fri Dec 8 01:19:29 2017
+++ src/tests/kernel/t_timeleft.c Sat Dec 30 17:06:27 2017
@@ -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 @@ static void
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;