summaryrefslogtreecommitdiff
path: root/tests/test-posixtm.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-09-16 20:20:17 +0200
committerJim Meyering <meyering@redhat.com>2009-09-19 18:11:47 +0200
commitde9d0ef74570f3faec1951ad2d1869d2c2f15533 (patch)
tree08369f67b27a3e165365f33de8af44230f186959 /tests/test-posixtm.c
parente6372a5c51f2d34e8a426dac627550a0444b293d (diff)
downloadgnulib-de9d0ef74570f3faec1951ad2d1869d2c2f15533.tar.gz
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.
Diffstat (limited to 'tests/test-posixtm.c')
-rw-r--r--tests/test-posixtm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c
index 8473b66f78..a77a558e41 100644
--- a/tests/test-posixtm.c
+++ b/tests/test-posixtm.c
@@ -49,11 +49,10 @@ struct posixtm_test
/* 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" },