Module Name:    src
Committed By:   pooka
Date:           Sun Jul 18 22:30:55 UTC 2010

Modified Files:
        src/tests/lib/libpthread: t_sem.c

Log Message:
Reduce sleep time for practically the same effect.  Until atf can
do parallel test execution, tests which spend 99.9999% of their
execution sleeping are not nice.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libpthread/t_sem.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/lib/libpthread/t_sem.c
diff -u src/tests/lib/libpthread/t_sem.c:1.1 src/tests/lib/libpthread/t_sem.c:1.2
--- src/tests/lib/libpthread/t_sem.c:1.1	Fri Jul 16 15:42:53 2010
+++ src/tests/lib/libpthread/t_sem.c	Sun Jul 18 22:30:55 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sem.c,v 1.1 2010/07/16 15:42:53 jmmv Exp $ */
+/* $NetBSD: t_sem.c,v 1.2 2010/07/18 22:30:55 pooka Exp $ */
 
 /*
  * Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008, 2010\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_sem.c,v 1.1 2010/07/16 15:42:53 jmmv Exp $");
+__RCSID("$NetBSD: t_sem.c,v 1.2 2010/07/18 22:30:55 pooka Exp $");
 
 #include <errno.h>
 #include <fcntl.h>
@@ -191,7 +191,7 @@
 		}
 
 		for (i = 0; i < NTHREADS; i++) {
-			sleep(1);
+			usleep(10000);
 			printf("main loop %u: posting...\n", j+1);
 			SEM_REQUIRE(sem_post(&sem_a));
 		}

Reply via email to