restore test

This commit is contained in:
rumbledethumps
2025-12-05 16:30:14 -08:00
parent dbdca13444
commit 18f084eafb

View File

@@ -70,6 +70,12 @@ int main (void)
fails++;
}
tm = localtime(NULL);
if (tm != NULL) {
printf("localtime should return NULL with a NULL parameter\n");
fails++;
}
/* Verify conversion both ways */
for (i = 0; ; i++) {
time_t t = data[i].t;
@@ -80,7 +86,7 @@ int main (void)
printf("0x%lx: gmtime: unexpected result: expected %s, got %s\n", t, data[i].gmt, str);
fails++;
}
_tz.timezone = 0;
tm = localtime(&t);
str = asctime(tm);