]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Conditionally disable part of dir/param_voting_lookup that expects soft asserts to...
authorrl1987 <rl1987@sdf.lonestar.org>
Sat, 14 Mar 2020 16:51:01 +0000 (18:51 +0200)
committerteor <teor@torproject.org>
Tue, 17 Mar 2020 11:08:13 +0000 (21:08 +1000)
src/test/test_dir.c

index b09c1acfe46a98443736b6a2e0277c536516b536..e6f87dbd32c04afd091b76528faaef2c95aadc0d 100644 (file)
@@ -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));