Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/stdio Reduce the number of snprintf(3) invoca...



details:   https://anonhg.NetBSD.org/src/rev/269509f13e57
branches:  trunk
changeset: 778741:269509f13e57
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Apr 11 16:21:42 2012 +0000

description:
Reduce the number of snprintf(3) invocations, as sparc/qemu timeouts.

diffstat:

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

diffs (18 lines):

diff -r b02cd91929a8 -r 269509f13e57 tests/lib/libc/stdio/t_printf.c
--- a/tests/lib/libc/stdio/t_printf.c   Wed Apr 11 16:18:39 2012 +0000
+++ b/tests/lib/libc/stdio/t_printf.c   Wed Apr 11 16:21:42 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.7 2012/03/18 08:13:57 jruoho Exp $ */
+/* $NetBSD: t_printf.c,v 1.8 2012/04/11 16:21:42 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -147,7 +147,7 @@
 
        time(&now);
        srand(now);
-       for (size_t i = 0; i < 1000000; i++) {
+       for (size_t i = 0; i < 10000; i++) {
                ul = rand();
                uh = rand();
                u.bits = (uint64_t)uh << 32 | ul;



Home | Main Index | Thread Index | Old Index