summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorginsbach <ginsbach@NetBSD.org>2015-10-30 03:18:10 +0000
committerginsbach <ginsbach@NetBSD.org>2015-10-30 03:18:10 +0000
commitc6b3ceb980ad68d3bc7d64c6406bfdbd2fdf8b0c (patch)
tree79474819ff0eaca343012882a5508725efde53e0 /tests/lib
parent314033f54b36b677e333e6767cdad7ba3f8351ab (diff)
ISO 8601 and RFC 3339 specify that an offset can be up to 23:59 and
not 12:00 east/west. Just proves that one shouldn't use other implementations as a canonical reference. Thanks to all who pointed this out.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/libc/time/t_strptime.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/lib/libc/time/t_strptime.c b/tests/lib/libc/time/t_strptime.c
index 78a911f2667..03dc5fd8fa5 100644
--- a/tests/lib/libc/time/t_strptime.c
+++ b/tests/lib/libc/time/t_strptime.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strptime.c,v 1.8 2015/10/30 01:51:15 ginsbach Exp $ */
+/* $NetBSD: t_strptime.c,v 1.9 2015/10/30 03:18:10 ginsbach Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_strptime.c,v 1.8 2015/10/30 01:51:15 ginsbach Exp $");
+__RCSID("$NetBSD: t_strptime.c,v 1.9 2015/10/30 03:18:10 ginsbach Exp $");
#include <time.h>
@@ -326,6 +326,10 @@ static struct {
{ "-0403", -14580 },
{ "+04:03", 14580 },
{ "-04:03", -14580 },
+ { "+14:00", 50400 },
+ { "-14:00", -50400 },
+ { "+23:59", 86340 },
+ { "-23:59", -86340 },
{ "1", -1 },
{ "03", -1 },
@@ -335,8 +339,8 @@ static struct {
{ "+12345", -1 },
{ "+12:345", -1 },
{ "+123:45", -1 },
- { "+1430", -1 },
- { "-1430", -1 },
+ { "+2400", -1 },
+ { "-2400", -1 },
{ "+1060", -1 },
{ "-1060", -1 },