Source-Changes-HG archive

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

[src/trunk]: src/tests/syscall Actually, as this is nanosleep(2), test 1-10 n...



details:   https://anonhg.NetBSD.org/src/rev/5d9f02ebcb0b
branches:  trunk
changeset: 764702:5d9f02ebcb0b
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun May 01 09:19:12 2011 +0000

description:
Actually, as this is nanosleep(2), test 1-10 nano second sleep times.

diffstat:

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

diffs (27 lines):

diff -r 35f4755f8c52 -r 5d9f02ebcb0b tests/syscall/t_nanosleep.c
--- a/tests/syscall/t_nanosleep.c       Sun May 01 09:15:14 2011 +0000
+++ b/tests/syscall/t_nanosleep.c       Sun May 01 09:19:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_nanosleep.c,v 1.2 2011/05/01 09:15:14 jruoho Exp $ */
+/* $NetBSD: t_nanosleep.c,v 1.3 2011/05/01 09:19:12 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_nanosleep.c,v 1.2 2011/05/01 09:15:14 jruoho Exp $");
+__RCSID("$NetBSD: t_nanosleep.c,v 1.3 2011/05/01 09:19:12 jruoho Exp $");
 
 #include <sys/time.h>
 #include <sys/wait.h>
@@ -76,7 +76,7 @@
                if (pid == 0) {
 
                        tsn.tv_sec = 0;
-                       tsn.tv_nsec = i * 1000;
+                       tsn.tv_nsec = i;
 
                        (void)memset(&ts1, 0, sizeof(struct timespec));
                        (void)memset(&ts2, 0, sizeof(struct timespec));



Home | Main Index | Thread Index | Old Index