Module Name: src Committed By: isaki Date: Sat Mar 7 09:59:15 UTC 2015
Modified Files: src/tests/lib/libc/gen: t_randomid.c Log Message: 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) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/gen/t_randomid.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/libc/gen/t_randomid.c diff -u src/tests/lib/libc/gen/t_randomid.c:1.4 src/tests/lib/libc/gen/t_randomid.c:1.5 --- src/tests/lib/libc/gen/t_randomid.c:1.4 Sat Feb 14 08:46:02 2015 +++ src/tests/lib/libc/gen/t_randomid.c Sat Mar 7 09:59:15 2015 @@ -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 @@ ATF_TC_BODY(randomid_basic, tc) lowest = UINT32_MAX; - for (n = 0; n < 1000000; n++) { + for (n = 0; n < 100000; n++) { id = randomid(ctx); if (last[id] > 0) {