[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12206: test-parse-datetime regression test failure with glibc-2.16.0
From: |
Bruce Dubbs |
Subject: |
bug#12206: test-parse-datetime regression test failure with glibc-2.16.0 |
Date: |
Wed, 15 Aug 2012 14:56:16 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120628 Firefox/13.0.1 SeaMonkey/2.10.1 |
The test-parse-datetime fails with glibc-2.16.0 The new glibc uses time
data from http://www.iana.org/time-zones. This currently uses a
leapseconds cumulative value of 24.
The problem shows up in the test-parse-datetime.c file:
time_t ref_time = 1304250918;
gmtoff = gmt_offset (ref_time);
p = "2011-05-01T11:55:18";
expected.tv_sec = ref_time - gmtoff;
expected.tv_nsec = 0;
ASSERT (parse_datetime (&result, p, 0));
ASSERT (expected.tv_sec == result.tv_sec &&
expected.tv_nsec == result.tv_nsec);
All the ISO 8601 test differ by leapseconds:
string '2011-05-01T11:55:18' diff -24 0
string '2011-05-01T11:55:18' diff 24 0
string '2011-05-01 11:55:18' diff 24 0
string '2011-05-01T11:55:18Z' diff 24 0
string '2011-05-01 11:55:18Z' diff 24 0
string '2011-05-01T11:55:18-07:00' diff 24 0
string '2011-05-01 11:55:18-07:00' diff 24 0
string '2011-05-01T11:55:18-07' diff 24 0
string '2011-05-01 11:55:18-07' diff 24 0
I'm not sure if this is a coreutils or gnulib problem, but it shows up
in the coreutils regression test.
-- Bruce Dubbs
linuxfromscratch.org
- bug#12206: test-parse-datetime regression test failure with glibc-2.16.0,
Bruce Dubbs <=