diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-08-31 12:53:18 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-08-31 12:53:18 -0400 |
commit | d5614b2102d3d9c6deb7190f77106ab7c0ef78ad (patch) | |
tree | cfc0333c4393b04e277e61322b5e89b2ef4d2530 /src/test/test_address.c | |
parent | f74916a98f97c7e80e46400e921d54466285d1fb (diff) | |
download | tor-d5614b2102d3d9c6deb7190f77106ab7c0ef78ad.tar.gz tor-d5614b2102d3d9c6deb7190f77106ab7c0ef78ad.zip |
Use setup_full_capture_of_logs() where appropriate.
Diffstat (limited to 'src/test/test_address.c')
-rw-r--r-- | src/test/test_address.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_address.c b/src/test/test_address.c index b4638f0702..e984beab46 100644 --- a/src/test/test_address.c +++ b/src/test/test_address.c @@ -824,9 +824,12 @@ test_address_get_if_addrs6_list_no_internal(void *arg) (void)arg; /* We might drop a log_err */ - int prev_level = setup_capture_of_logs(LOG_ERR); + int prev_level = setup_full_capture_of_logs(LOG_ERR); results = get_interface_address6_list(LOG_ERR, AF_INET6, 0); tt_int_op(smartlist_len(mock_saved_logs()), OP_LE, 1); + if (smartlist_len(mock_saved_logs()) == 1) { + expect_log_msg_containing("connect() failed"); + } teardown_capture_of_logs(prev_level); tt_assert(results != NULL); |