about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-14 21:05:24 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-14 21:05:24 +0000
commit0050ad5f64b2f4b3732e59eaa070a954c2335824 (patch)
tree0e1dd5582c4cfe9635de50e08467206bdbdbd9d9 /time
parent965e02a29067cac71f1d82f801177c3e4f64638f (diff)
downloadglibc-0050ad5f64b2f4b3732e59eaa070a954c2335824.tar.gz
glibc-0050ad5f64b2f4b3732e59eaa070a954c2335824.tar.xz
glibc-0050ad5f64b2f4b3732e59eaa070a954c2335824.zip
Update.
	* time/tst-strptime.c (main): Add one more test case.  Produce
	output even when result is ok.
Diffstat (limited to 'time')
-rw-r--r--time/tst-strptime.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/time/tst-strptime.c b/time/tst-strptime.c
index 52a7054475..f92cb0c201 100644
--- a/time/tst-strptime.c
+++ b/time/tst-strptime.c
@@ -1,5 +1,5 @@
 /* Test for strptime.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -34,6 +34,7 @@ static const struct
   { "2000-01-01", "%Y-%m-%d", 6, 0 },
   { "03/03/00", "%D", 5, 62 },
   { "9/9/99", "%x", 4, 251 },
+  { "19990502123412", "%Y%m%d%H%M%S", 0, 121 },
 };
 
 
@@ -53,6 +54,14 @@ main (int argc, char *argv[])
 	  printf ("not all of `%s' read\n", day_tests[i].input);
 	  result = 1;
 	}
+
+      printf ("strptime (\"%s\", \"%s\", ...)\n"
+	      "\tshould be: wday = %d, yday = %3d\n"
+	      "\t       is: wday = %d, yday = %3d\n",
+	      day_tests[i].input, day_tests[i].format,
+	      day_tests[i].wday, day_tests[i].yday,
+	      tm.tm_wday, tm.tm_yday);
+
       if (tm.tm_wday != day_tests[i].wday)
 	{
 	  printf ("weekday for `%s' incorrect: %d instead of %d\n",