Lines Matching defs:expected
11 * checkStrptime - parse time and check if it matches expected value
17 static void checkStrptime(const char *s, const char *format, const struct tm *expected) {
24 } else if (tm.tm_sec != expected->tm_sec ||
25 tm.tm_min != expected->tm_min ||
26 tm.tm_hour != expected->tm_hour ||
27 tm.tm_mday != expected->tm_mday ||
28 tm.tm_mon != expected->tm_mon ||
29 tm.tm_year != expected->tm_year) {
33 strftime(buf1, sizeof(buf1), "%FT%H:%M:%S%Z", expected);
36 t_error("\"%s\": for \"%s\" expected %s but got %s\n", format, s, buf1, buf2);
41 long int expected = h * 3600 + m * 60;
48 } else if (tm.tm_gmtoff != expected) {
49 t_error("\"%%z\": for \"%s\" expected tm_gmtoff %ld but got %ld\n", s, tm.tm_gmtoff, expected);