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_util.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_util.c')
-rw-r--r-- | src/test/test_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 5432b2ccc4..061398cb84 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -5254,9 +5254,11 @@ test_util_pwdb(void *arg) tt_assert(found); tor_free(dir); - prev_level = setup_capture_of_logs(LOG_ERR); /* We should do a LOG_ERR */ + /* We should do a LOG_ERR */ + prev_level = setup_full_capture_of_logs(LOG_ERR); dir = get_user_homedir(badname); tt_assert(dir == NULL); + expect_log_msg_containing("not found"); tt_int_op(smartlist_len(mock_saved_logs()), OP_EQ, 1); teardown_capture_of_logs(prev_level); prev_level = -100; |