Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libutil Reduce the step size, exposing another bug.



details:   https://anonhg.NetBSD.org/src/rev/478a8e5fc6eb
branches:  trunk
changeset: 345051:478a8e5fc6eb
user:      gson <gson%NetBSD.org@localhost>
date:      Wed May 04 18:36:46 2016 +0000

description:
Reduce the step size, exposing another bug.

diffstat:

 tests/lib/libutil/t_parsedate.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 25f2bc6c36d1 -r 478a8e5fc6eb tests/lib/libutil/t_parsedate.c
--- a/tests/lib/libutil/t_parsedate.c   Wed May 04 18:15:53 2016 +0000
+++ b/tests/lib/libutil/t_parsedate.c   Wed May 04 18:36:46 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_parsedate.c,v 1.22 2016/05/03 18:18:15 kre Exp $ */
+/* $NetBSD: t_parsedate.c,v 1.23 2016/05/04 18:36:46 gson Exp $ */
 /*-
  * Copyright (c) 2010, 2015 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_parsedate.c,v 1.22 2016/05/03 18:18:15 kre Exp $");
+__RCSID("$NetBSD: t_parsedate.c,v 1.23 2016/05/04 18:36:46 gson Exp $");
 
 #include <atf-c.h>
 #include <errno.h>
@@ -269,10 +269,8 @@
         * edges of the time_t range to avert under- or overflow
         * of the relative date, and use a prime step for maximum
         * coverage of different times of day/week/month/year.
-        * The step is currently large to limit the size of the
-        * error log, but can be reduced as bugs are fixed.
         */
-       for (now = 0x00FFFFFF; now < 0xFF000000; now += 7424537) {
+       for (now = 0x00FFFFFF; now < 0xFF000000; now += 3777779) {
                ATF_CHECK(localtime_r(&now, &tm) != NULL);
                tm.tm_mday--;
                /* "yesterday" leaves time untouched */



Home | Main Index | Thread Index | Old Index