Lines Matching defs:tm
48 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
52 ret = strptime(buf, fmt, &tm);
56 "strptime(\"%s\", \"%s\", tm): incorrect return code: "
60 ATF_CHECK_MSG(tm.field == field, \
61 "strptime(\"%s\", \"%s\", tm): incorrect %s: " \
63 ___STRING(field), field, tm.field)
66 "strptime(\"%s\", \"%s\", tm): incorrect return code: "
70 ATF_REQUIRE_MSG(tm.field == field, \
71 "strptime(\"%s\", \"%s\", tm): incorrect %s: " \
73 ___STRING(field), field, tm.field)
91 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
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);
183 struct tm tm;
186 memset(&tm, 0, sizeof(tm));
187 if ((rv = strptime(name, fmt, &tm)) == NULL)
188 tm.tm_gmtoff = -1;
206 ATF_REQUIRE_MSG(tm.tm_gmtoff == value,
207 "strptime(\"%s\", \"%s\", &tm): "
208 "expected: tm.tm_gmtoff=%ld, got: tm.tm_gmtoff=%ld",
209 name, fmt, value, tm.tm_gmtoff);
210 printf("%s %s %ld\n", name, fmt, tm.tm_gmtoff);