diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-11 17:43:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-11 17:43:20 -0400 |
commit | ccea2a5aa92f3d6eae62877da8291a8c59d15adb (patch) | |
tree | dcf64917382999c675b1db104a8e9cb05154e567 /src/test/test_util.c | |
parent | c6e70dacb8e53f28b7e926de81edaf4b25b48848 (diff) | |
download | tor-ccea2a5aa92f3d6eae62877da8291a8c59d15adb.tar.gz tor-ccea2a5aa92f3d6eae62877da8291a8c59d15adb.zip |
Fix gmtime unit test on openbsd
openbsd helpfully handles gmtime() of INT64_MIN. Good job!
Our tests didn't handle that so well.
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r-- | src/test/test_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index cb523cf350..7d02fed853 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -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 |