aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-10-19 17:23:11 -0400
committerNick Mathewson <nickm@torproject.org>2016-10-19 18:04:47 -0400
commitc87d9b13a4e56237e22df776c47e5520e0d37103 (patch)
tree8b40901add85d702f146454bda7f747dac03701d /src/test/test_dir.c
parentdf387b94e8c4ebac964dcf2227b9a01d6a9481cc (diff)
downloadtor-c87d9b13a4e56237e22df776c47e5520e0d37103.tar.gz
tor-c87d9b13a4e56237e22df776c47e5520e0d37103.zip
BUG in purpose_needs_anonymity if switch not matched.
I believe that this should never trigger, but if it does, it suggests that there was a gap between is_sensitive_dir_purpose and purpose_needs_anonymity that we need to fill. Related to 20077.
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 0f6166d718..d9c565cc8a 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -3257,7 +3257,10 @@ test_dir_purpose_needs_anonymity_returns_true_by_default(void *arg)
{
(void)arg;
+ tor_capture_bugs_(1);
tt_int_op(1, ==, purpose_needs_anonymity(0, 0));
+ tt_int_op(1, ==, smartlist_len(tor_get_captured_bug_log_()));
+ tor_end_capture_bugs_();
done: ;
}