Lines Matching defs:tzcase
27 struct tzcase {
32 static const struct tzcase tzcases[] = {
48 static const struct tzcase utc = { "UTC", "+0000 (UTC)" };
49 static const struct tzcase invalid = { "invalid", "+0000 (-00)" };
156 const struct tzcase *tzcase = tzcases;
161 change_tz(tzcase->tzfn);
167 test_tz(tzcase->expect);
207 const struct tzcase *tzcase = NULL;
289 /* tzcase will be NULL at first */
290 if (tzcase != NULL) {
292 ATF_REQUIRE_STREQ(tzcase->expect, obuf);
294 tzcase->tzfn, (int)(now - changed));
304 if (tzcase == NULL)
305 tzcase = tzcases;
307 tzcase++;
308 if (tzcase->tzfn == NULL) {
312 change_tz(tzcase->tzfn);
331 * 61-second interval. However, each individual tzcase
339 tzcase == tzcases) {
349 "to be detected", tzcase->tzfn);
376 const struct tzcase *tzcase = tzcases;
380 for (tzcase = tzcases; tzcase->tzfn != NULL; tzcase++)
381 test_tz_env(tzcase->tzfn, tzcase->expect);
383 for (tzcase = tzcases; tzcase->tzfn != NULL; tzcase++) {
384 len = snprintf(path, sizeof(path), "%s/%s", TZDIR, tzcase->tzfn);
386 test_tz_env(path, tzcase->expect);
389 for (tzcase = tzcases; tzcase->tzfn != NULL; tzcase++) {
390 len = snprintf(path, sizeof(path), "%s/////%s", TZDIR, tzcase->tzfn);
392 test_tz_env(path, tzcase->expect);
429 const struct tzcase *tzcase = tzcases;
434 change_tz(tzcase->tzfn);