Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libpthread Reduce sleep time for practically the s...
details: https://anonhg.NetBSD.org/src/rev/cd311bd14d14
branches: trunk
changeset: 756467:cd311bd14d14
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Jul 18 22:30:55 2010 +0000
description:
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.
diffstat:
tests/lib/libpthread/t_sem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 60dca6b30fd3 -r cd311bd14d14 tests/lib/libpthread/t_sem.c
--- a/tests/lib/libpthread/t_sem.c Sun Jul 18 20:20:04 2010 +0000
+++ b/tests/lib/libpthread/t_sem.c Sun Jul 18 22:30:55 2010 +0000
@@ -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));
}
Home |
Main Index |
Thread Index |
Old Index