tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit ffdca3dd14ceb0adacc290c3207391c9810b9fbe
parent c7cf49dc3cce42a77d32011599780360658b1fc9
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue,  9 Apr 2019 13:49:58 -0400

Merge branch 'bug29922_035' into maint-0.4.0

Diffstat:
Msrc/test/test_util.c | 9+--------
1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c @@ -728,13 +728,6 @@ test_util_time(void *arg) #define CHECK_TIMEGM_ARG_OUT_OF_RANGE(msg) \ CHECK_TIMEGM_WARNING("Out-of-range argument to tor_timegm") -#define CHECK_POSSIBLE_TIMEGM_ARG_OUT_OF_RANGE(msg) \ - do { \ - if (mock_saved_log_n_entries()) { \ - expect_single_log_msg_containing("Out-of-range argument");\ - } \ - teardown_capture_of_logs(); \ - } while (0) /* year */ @@ -923,7 +916,7 @@ test_util_time(void *arg) t_res = -1; CAPTURE(); tor_gmtime_r(&t_res, &b_time); - CHECK_POSSIBLE_TIMEGM_ARG_OUT_OF_RANGE(); + CHECK_POSSIBLE_EINVAL(); tt_assert(b_time.tm_year == (1970-1900) || b_time.tm_year == (1969-1900));