commit 4665bb4c708df2047915ada436ba98af38678462
parent 15e55a72c96d069ac2551856be5b7d5efdb617db
Author: Nick Mathewson <nickm@torproject.org>
Date: Mon, 21 Apr 2025 15:34:00 -0400
Fix tests when built with --all-bugs-are-fatal.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/test/test_cell_formats.c b/src/test/test_cell_formats.c
@@ -1403,6 +1403,12 @@ static void
test_cfmt_relay_msg_encoding_error(void *arg)
{
(void)arg;
+#ifdef ALL_BUGS_ARE_FATAL
+ // This test triggers many nonfatal assertions.
+ tt_skip();
+ done:
+ ;
+#else
relay_msg_t *msg1 = NULL;
int r;
cell_t cell;
@@ -1447,6 +1453,7 @@ test_cfmt_relay_msg_encoding_error(void *arg)
done:
tor_end_capture_bugs_();
relay_msg_free(msg1);
+#endif
}
static void