Mercurial > hg > octave-nkf > gnulib-hg
changeset 12031:40b3fd56714f
posixtm-tests: make T const-correct; add a test case
* tests/test-posixtm.c (T): Declare const.
Add a test for -(2^31+1).
Remove useless can-succeed-only-in-2002 test.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Wed, 16 Sep 2009 20:20:17 +0200 |
parents | ae517b0cc620 |
children | 12513d9f050c |
files | ChangeLog tests/test-posixtm.c |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-09-16 Jim Meyering <meyering@redhat.com> + posixtm-tests: make T const-correct; add a test case + * tests/test-posixtm.c (T): Declare const. + Add a test for -(2^31+1). + Remove useless can-succeed-only-in-2002 test. + 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
--- a/tests/test-posixtm.c +++ b/tests/test-posixtm.c @@ -49,11 +49,10 @@ /* Test mainly with syntax_bits == 13 (aka: (PDS_LEADING_YEAR | PDS_CENTURY | PDS_SECONDS)) */ -static struct posixtm_test T[] = +static struct posixtm_test const 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, "-62167219200 Sat Jan 1 00:00:00 0" }, + { "190112132045.51", 13, " -2147483649 Fri Dec 13 20:45:51 1901" }, { "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" },