aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_intropoint.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2020-03-14 19:00:54 +0200
committerteor <teor@torproject.org>2020-03-17 21:08:16 +1000
commit5675cbd4c756283419fb0ed3b2d524b2b3cb101b (patch)
tree732bacca85387fb37fcbec4d41b19f75272e3bf1 /src/test/test_hs_intropoint.c
parent4ab20b4f63daa021df7575d6251eaca61301850b (diff)
downloadtor-5675cbd4c756283419fb0ed3b2d524b2b3cb101b.tar.gz
tor-5675cbd4c756283419fb0ed3b2d524b2b3cb101b.zip
Conditionally disable part of hs_intropoint/introduce1_validation
This makes it not fail when ALL_BUGS_ARE_FATAL is enabled. Fixes bug 33546.
Diffstat (limited to 'src/test/test_hs_intropoint.c')
-rw-r--r--src/test/test_hs_intropoint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_hs_intropoint.c b/src/test/test_hs_intropoint.c
index 5337188427..3b6e3fd213 100644
--- a/src/test/test_hs_intropoint.c
+++ b/src/test/test_hs_intropoint.c
@@ -757,12 +757,15 @@ test_introduce1_validation(void *arg)
cell = helper_create_introduce1_cell();
tt_assert(cell);
+#ifndef ALL_BUGS_ARE_FATAL
/* It should NOT be a legacy cell which will trigger a BUG(). */
memset(cell->legacy_key_id, 'a', sizeof(cell->legacy_key_id));
tor_capture_bugs_(1);
ret = validate_introduce1_parsed_cell(cell);
tor_end_capture_bugs_();
tt_int_op(ret, OP_EQ, -1);
+#endif
+
/* Reset legacy ID and make sure it's correct. */
memset(cell->legacy_key_id, 0, sizeof(cell->legacy_key_id));
ret = validate_introduce1_parsed_cell(cell);