diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-08-16 15:28:22 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-08-16 15:28:22 +0000 |
commit | 80d33e10aa5b4537c7dbc051b3b4e7ae3570aa12 (patch) | |
tree | 57e7f1cf548d7707c11989e7b03d57ce7e991043 | |
parent | 86aec2abf336dacaaf08558ca5fd00bf4c1192f7 (diff) | |
parent | 903c5781192d7902c01ab6b0d4b2aec91da44890 (diff) | |
download | tor-80d33e10aa5b4537c7dbc051b3b4e7ae3570aa12.tar.gz tor-80d33e10aa5b4537c7dbc051b3b4e7ae3570aa12.zip |
Merge branch 'maint-0.4.5' into release-0.4.5
-rw-r--r-- | src/test/test_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index fd0e6763e8..f567a18367 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -819,17 +819,16 @@ test_util_time(void *arg) /* The below tests will all cause a BUG message, so we capture, suppress, * and detect. */ #define CAPTURE() do { \ + teardown_capture_of_logs(); \ setup_full_capture_of_logs(LOG_WARN); \ } while (0) #define CHECK_TIMEGM_WARNING(msg) do { \ expect_single_log_msg_containing(msg); \ - teardown_capture_of_logs(); \ } while (0) #define CHECK_POSSIBLE_EINVAL() do { \ if (mock_saved_log_n_entries()) { \ expect_single_log_msg_containing("Invalid argument"); \ } \ - teardown_capture_of_logs(); \ } while (0) #define CHECK_TIMEGM_ARG_OUT_OF_RANGE(msg) \ |