diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-07 11:19:49 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-07 11:19:49 -0500 |
commit | 1d45438ef03564b7af2f3a5b4b0e3ff7a9570a97 (patch) | |
tree | 59a6a1314aeeb82826b63d84036c923581bfe28c /src/test/test_dir.c | |
parent | 2499ea359ab149343e10c38fb87ba903a0e8e049 (diff) | |
download | tor-1d45438ef03564b7af2f3a5b4b0e3ff7a9570a97.tar.gz tor-1d45438ef03564b7af2f3a5b4b0e3ff7a9570a97.zip |
Capture warning in dir/purpose_needs_anonymity_returns_true_by_default
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r-- | src/test/test_dir.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 6f83ceff00..fa0a174813 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -3501,10 +3501,15 @@ test_dir_purpose_needs_anonymity_returns_true_by_default(void *arg) (void)arg; tor_capture_bugs_(1); + setup_full_capture_of_logs(LOG_WARN); tt_int_op(1, ==, purpose_needs_anonymity(0, 0, NULL)); tt_int_op(1, ==, smartlist_len(tor_get_captured_bug_log_())); + expect_single_log_msg_containing("Called with dir_purpose=0"); + tor_end_capture_bugs_(); - done: ; + done: + tor_end_capture_bugs_(); + teardown_capture_of_logs(); } static void |