aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2020-03-14 18:51:01 +0200
committerteor <teor@torproject.org>2020-03-17 21:08:13 +1000
commit4ab20b4f63daa021df7575d6251eaca61301850b (patch)
treea352908622844071eaef77b2e39a7c47498892ec /src/test/test_dir.c
parent752122b2e9647b82fbb7f6eac120d57b913761f9 (diff)
downloadtor-4ab20b4f63daa021df7575d6251eaca61301850b.tar.gz
tor-4ab20b4f63daa021df7575d6251eaca61301850b.zip
Conditionally disable part of dir/param_voting_lookup that expects soft asserts to happen
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index b09c1acfe4..e6f87dbd32 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -3005,6 +3005,7 @@ test_dir_param_voting_lookup(void *arg)
tt_int_op(99, OP_EQ,
dirvote_get_intermediate_param_value(lst, "abcd", 1000));
+#ifndef ALL_BUGS_ARE_FATAL
/* moomin appears twice. That's a bug. */
tor_capture_bugs_(1);
tt_int_op(-100, OP_EQ,
@@ -3040,6 +3041,7 @@ test_dir_param_voting_lookup(void *arg)
tt_str_op(smartlist_get(tor_get_captured_bug_log_(), 0), OP_EQ,
"!(!ok)");
tor_end_capture_bugs_();
+#endif
done:
SMARTLIST_FOREACH(lst, char *, cp, tor_free(cp));