diff options
author | Andreas Jaeger <aj@suse.de> | 2000-08-20 10:32:05 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-08-20 10:32:05 +0000 |
commit | 768b07329efb344cfcedf684560c8020fad7f429 (patch) | |
tree | 4d436300c61c05b4fb816779b92fe821d4e0bb4c /time/tst-getdate.c | |
parent | 7a66c585c39d24889022a514085e7a0b74d87d7a (diff) | |
download | glibc-768b07329efb344cfcedf684560c8020fad7f429.tar glibc-768b07329efb344cfcedf684560c8020fad7f429.tar.gz glibc-768b07329efb344cfcedf684560c8020fad7f429.tar.bz2 glibc-768b07329efb344cfcedf684560c8020fad7f429.zip |
Reformat.
Diffstat (limited to 'time/tst-getdate.c')
-rw-r--r-- | time/tst-getdate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/time/tst-getdate.c b/time/tst-getdate.c index 8fdfeb6dea..d07fb3d06d 100644 --- a/time/tst-getdate.c +++ b/time/tst-getdate.c @@ -77,12 +77,13 @@ main (void) int errors = 0; int i; struct tm *tm; - + setenv ("TZ", "Universal", 1); for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i) { tm = getdate (tests[i].str); + if (getdate_err != tests[i].err) { printf ("Failure for getdate (\"%s\"):\n", tests[i].str); @@ -108,9 +109,8 @@ main (void) tests[i].tm.tm_hour, tests[i].tm.tm_min, tests[i].tm.tm_sec); ++errors; } - - } + if (!errors) printf ("No errors found.\n"); return errors != 0; |