Lines Matching defs:fmt
44 h_pass(const char *buf, const char *fmt, int len,
52 ret = strptime(buf, fmt, &tm);
57 "expected: %p, got: %p", buf, fmt, exp, ret);
62 "expected: %d, but got: %d", buf, fmt, \
67 "expected: %p, got: %p", buf, fmt, exp, ret);
72 "expected: %d, but got: %d", buf, fmt, \
89 h_fail(const char *buf, const char *fmt)
94 ATF_CHECK_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", "
95 "\"%s\", &tm) should fail, but it didn't", buf, fmt);
97 ATF_REQUIRE_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", "
98 "\"%s\", &tm) should fail, but it didn't", buf, fmt);
181 ztest1(const char *name, const char *fmt, long value)
187 if ((rv = strptime(name, fmt, &tm)) == NULL)
189 else if (rv == name && fmt[1] == 'Z')
199 if (fmt[1] == 'Z')
209 name, fmt, value, tm.tm_gmtoff);
210 printf("%s %s %ld\n", name, fmt, tm.tm_gmtoff);
214 ztest(const char *fmt)
218 ztest1("GMT", fmt, 0);
219 ztest1("UTC", fmt, 0);
220 ztest1("US/Eastern", fmt, -18000);
223 ztest1(zt[i].name, fmt, zt[i].offs);