|
@@ -9,6 +9,14 @@ int main(int argc, char** argv) {
|
|
.tm_wday = 4, .tm_yday = 0, .tm_isdst = 0, .tm_gmtoff = 0, .tm_zone = "UTC" };
|
|
.tm_wday = 4, .tm_yday = 0, .tm_isdst = 0, .tm_gmtoff = 0, .tm_zone = "UTC" };
|
|
|
|
|
|
tm *info = gmtime(&a);
|
|
tm *info = gmtime(&a);
|
|
|
|
+ if (info->tm_sec != expected.tm_sec || info->tm_min != expected.tm_min ||
|
|
|
|
+ info->tm_hour != expected.tm_hour || info->tm_mday != expected.tm_mday ||
|
|
|
|
+ info->tm_year != expected.tm_year || info->tm_wday != expected.tm_wday ||
|
|
|
|
+ info->tm_yday != expected.tm_yday || info->tm_isdst != expected.tm_isdst ||
|
|
|
|
+ info->tm_gmtoff != expected.tm_gmtoff || strcmp(info->tm_zone, expected.tm_zone) != 0) {
|
|
|
|
+ exit(1);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (info->tm_sec != expected.tm_sec || info->tm_min != expected.tm_min ||
|
|
if (info->tm_sec != expected.tm_sec || info->tm_min != expected.tm_min ||
|
|
info->tm_hour != expected.tm_hour || info->tm_mday != expected.tm_mday ||
|
|
info->tm_hour != expected.tm_hour || info->tm_mday != expected.tm_mday ||
|
|
info->tm_year != expected.tm_year || info->tm_wday != expected.tm_wday ||
|
|
info->tm_year != expected.tm_year || info->tm_wday != expected.tm_wday ||
|