19 main (int argc, char ** argv)
26 memset (&tm, 0, sizeof (tm));
28 tm.tm_year = 96; /* years since 1900 */
35 for (i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
37 setenv ("TZ", tests[i].env, 1);
39 if (t != tests[i].expected)
41 printf ("%s: flunked test %u (expected %lu, got %lu)\n",
42 argv[0], i, (long) tests[i].expected, (long) t);
53 printf ("%d errors.\n", errors);