]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix tests when built with --all-bugs-are-fatal.
authorNick Mathewson <nickm@torproject.org>
Mon, 21 Apr 2025 19:34:00 +0000 (15:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 May 2025 17:07:37 +0000 (13:07 -0400)
src/test/test_cell_formats.c

index 126aad1a3c2810adf3d284b255f77a6da448fb11..3456650ca7e5f74e0f51c9453b3af0d7c90d4635 100644 (file)
@@ -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