aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-06-23 21:20:29 -0700
committerDan Fandrich <dan@coneharvesters.com>2011-06-23 21:20:29 -0700
commit43ce5580a85498185af29b96fa0891b96fca3a2f (patch)
tree5d40ed6c29ad751aead72be0c4d71a60a1aa4766
parent0215f7cb4dd04853f3ec193a82b79cc8b696a301 (diff)
Added a leap second test to test517
-rw-r--r--tests/data/test5171
-rw-r--r--tests/libtest/lib517.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/data/test517 b/tests/data/test517
index 31b38b1a2..48d8122e7 100644
--- a/tests/data/test517
+++ b/tests/data/test517
@@ -109,6 +109,7 @@ nothing
80: 20110623 56:34:56 => -1
81: 20111323 12:34:56 => -1
82: 20110623 12:34:79 => -1
+83: Wed, 31 Dec 2008 23:59:60 GMT => 1230768000
</stdout>
# This test case previously testes an overflow case ("2094 Nov 6 =>
diff --git a/tests/libtest/lib517.c b/tests/libtest/lib517.c
index 8502e9521..ba49ec41e 100644
--- a/tests/libtest/lib517.c
+++ b/tests/libtest/lib517.c
@@ -23,7 +23,7 @@
#include "memdebug.h"
-static const char *dates[]={
+static const char * const dates[]={
"Sun, 06 Nov 1994 08:49:37 GMT",
"Sunday, 06-Nov-94 08:49:37 GMT",
"Sun Nov 6 08:49:37 1994",
@@ -115,6 +115,7 @@ static const char *dates[]={
"20110623 56:34:56",
"20111323 12:34:56",
"20110623 12:34:79",
+ "Wed, 31 Dec 2008 23:59:60 GMT", /* leap second */
NULL
};