From e6372a5c51f2d34e8a426dac627550a0444b293d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 16 Sep 2009 10:36:36 +0200 Subject: [PATCH] posixtm-tests: correct the sole failing test * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that expected output matches what mktime now produces. Cross-checked via erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}}) --- ChangeLog | 5 +++++ tests/test-posixtm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 020659426..1544a7357 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-09-16 Jim Meyering + posixtm-tests: adjust the sole failing test + * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that + expected output matches what mktime now produces. Cross-checked via + erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}}) + posixtm: move #ifdef'd tests into a new module * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to... * tests/test-posixtm.c: ... this new file. diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c index 2f9f5654a..8473b66f7 100644 --- a/tests/test-posixtm.c +++ b/tests/test-posixtm.c @@ -53,7 +53,7 @@ static struct posixtm_test T[] = { { "12131415.16", 13, " 1039788916 Fri Dec 13 14:15:16 2002" }, { "12131415.16", 13, " 1039788916 Fri Dec 13 14:15:16 2002" }, - { "000001010000.00", 13, "-62167132800 Sun Jan 1 00:00:00 0000" }, + { "000001010000.00", 13, "-62167219200 Sat Jan 1 00:00:00 0" }, { "190112132045.52", 13, " -2147483648 Fri Dec 13 20:45:52 1901" }, { "190112132045.53", 13, " -2147483647 Fri Dec 13 20:45:53 1901" }, { "190112132046.52", 13, " -2147483588 Fri Dec 13 20:46:52 1901" }, -- 2.11.0