tzcase
const struct tzcase *tzcase = tzcases;
change_tz(tzcase->tzfn);
test_tz(tzcase->expect);
const struct tzcase *tzcase = NULL;
if (tzcase != NULL) {
ATF_REQUIRE_STREQ(tzcase->expect, obuf);
tzcase->tzfn, (int)(now - changed));
if (tzcase == NULL)
tzcase = tzcases;
tzcase++;
if (tzcase->tzfn == NULL) {
change_tz(tzcase->tzfn);
static const struct tzcase tzcases[] = {
tzcase == tzcases) {
"to be detected", tzcase->tzfn);
const struct tzcase *tzcase = tzcases;
for (tzcase = tzcases; tzcase->tzfn != NULL; tzcase++)
test_tz_env(tzcase->tzfn, tzcase->expect);
for (tzcase = tzcases; tzcase->tzfn != NULL; tzcase++) {
len = snprintf(path, sizeof(path), "%s/%s", TZDIR, tzcase->tzfn);
test_tz_env(path, tzcase->expect);
for (tzcase = tzcases; tzcase->tzfn != NULL; tzcase++) {
len = snprintf(path, sizeof(path), "%s/////%s", TZDIR, tzcase->tzfn);
test_tz_env(path, tzcase->expect);
const struct tzcase *tzcase = tzcases;
change_tz(tzcase->tzfn);
static const struct tzcase utc = { "UTC", "+0000 (UTC)" };
static const struct tzcase invalid = { "invalid", "+0000 (-00)" };