mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix gmtime unit test on openbsd
openbsd helpfully handles gmtime() of INT64_MIN. Good job! Our tests didn't handle that so well.
This commit is contained in:
parent
c6e70dacb8
commit
ccea2a5aa9
@ -881,7 +881,11 @@ test_util_time(void *arg)
|
||||
b_time.tm_year == (1-1900))) {
|
||||
tt_int_op(b_time.tm_year, OP_EQ, 1970-1900);
|
||||
}
|
||||
CHECK_TIMEGM_WARNING("Rounding up to ");
|
||||
if (b_time.tm_year != 1970-1900) {
|
||||
CHECK_TIMEGM_WARNING("Rounding up to ");
|
||||
} else {
|
||||
teardown_capture_of_logs();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user