summaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
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: ;
}