Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/db Reduce the number of iterations in the bsi...



details:   https://anonhg.NetBSD.org/src/rev/44a5e2c0b538
branches:  trunk
changeset: 824961:44a5e2c0b538
user:      gson <gson%NetBSD.org@localhost>
date:      Sat Jun 24 10:25:23 2017 +0000

description:
Reduce the number of iterations in the bsize_torture test from 65535
to 1000 to make the ATF test suite as a whole take less time.  Before
the change, this single test case could take more than two hours to
run on a qemu emulated ARM.

diffstat:

 tests/lib/libc/db/h_lfsr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r a63c0735c11c -r 44a5e2c0b538 tests/lib/libc/db/h_lfsr.c
--- a/tests/lib/libc/db/h_lfsr.c        Sat Jun 24 07:30:17 2017 +0000
+++ b/tests/lib/libc/db/h_lfsr.c        Sat Jun 24 10:25:23 2017 +0000
@@ -27,7 +27,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: h_lfsr.c,v 1.1 2015/11/18 18:35:35 christos Exp $");
+__RCSID("$NetBSD: h_lfsr.c,v 1.2 2017/06/24 10:25:23 gson Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -37,7 +37,7 @@
 #include <unistd.h>
 #include <db.h>
 
-#define MAXKEY 0xffff
+#define MAXKEY 1000
 #ifdef DEBUG
 #define DPRINTF(...)   printf(__VA_ARGS__)
 #else



Home | Main Index | Thread Index | Old Index