Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Reduce the number of loops.
details: https://anonhg.NetBSD.org/src/rev/87777548475d
branches: trunk
changeset: 336583:87777548475d
user: isaki <isaki%NetBSD.org@localhost>
date: Sat Mar 07 09:59:15 2015 +0000
description:
Reduce the number of loops.
It avoids timeout on slow machines, and I think that 100,000
times loop also satisfies the evaluation.
PR lib/49664 (no comments)
diffstat:
tests/lib/libc/gen/t_randomid.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2e485480448d -r 87777548475d tests/lib/libc/gen/t_randomid.c
--- a/tests/lib/libc/gen/t_randomid.c Sat Mar 07 07:28:37 2015 +0000
+++ b/tests/lib/libc/gen/t_randomid.c Sat Mar 07 09:59:15 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_randomid.c,v 1.4 2015/02/14 08:46:02 isaki Exp $ */
+/* $NetBSD: t_randomid.c,v 1.5 2015/03/07 09:59:15 isaki Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
lowest = UINT32_MAX;
- for (n = 0; n < 1000000; n++) {
+ for (n = 0; n < 100000; n++) {
id = randomid(ctx);
if (last[id] > 0) {
Home |
Main Index |
Thread Index |
Old Index