diff options
author | Andreas Jaeger <aj@suse.de> | 2000-08-20 10:28:04 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-08-20 10:28:04 +0000 |
commit | 36f76c510b6bfffd5f9d5bac65a8818a6f5968d1 (patch) | |
tree | 222f25b5e5e03066e44c88841d2b359945771acb /time/tst-getdate.c | |
parent | 00d8bc81a96ff398af9517f1ad49b729cc4795d1 (diff) | |
download | glibc-36f76c510b6bfffd5f9d5bac65a8818a6f5968d1.zip glibc-36f76c510b6bfffd5f9d5bac65a8818a6f5968d1.tar.gz glibc-36f76c510b6bfffd5f9d5bac65a8818a6f5968d1.tar.bz2 |
Increase error in case of wrong conversion. Fix typo in test case.
Diffstat (limited to 'time/tst-getdate.c')
-rw-r--r-- | time/tst-getdate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/time/tst-getdate.c b/time/tst-getdate.c index 7f90629..8fdfeb6 100644 --- a/time/tst-getdate.c +++ b/time/tst-getdate.c @@ -32,7 +32,7 @@ static const struct { {"21:01:10 1999-1-31", 0, {10, 1, 21, 31, 0, 99, 0, 0, 0}}, {"21:01:10 1999-2-28", 0, {10, 1, 21, 28, 1, 99, 0, 0, 0}}, - {"16:30:46 2000-2-29", 0, {46, 31,16, 29, 1, 100, 0, 0, 0}} + {"16:30:46 2000-2-29", 0, {46, 30,16, 29, 1, 100, 0, 0, 0}} }; void @@ -103,8 +103,10 @@ main (void) tm->tm_year+1900, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); printf ("but should be: %d-%d-%d %d:%d:%d\n", - tests[i].tm.tm_year+1900, tests[i].tm.tm_mon, tests[i].tm.tm_mday, + tests[i].tm.tm_year+1900, tests[i].tm.tm_mon, + tests[i].tm.tm_mday, tests[i].tm.tm_hour, tests[i].tm.tm_min, tests[i].tm.tm_sec); + ++errors; } |