Ver Fonte

Cargo.toml: Disable debug assertions for tests

Recent versions of the toolchain introduced an assert to panic on
unaligned pointer dereferences. We do have some unaligned accesses in
our test suite, and rbpf has been supporting them so far.

As a quick fix, disable debug assertions in the tests. We want to
re-enable them as soon as possible, once we have a solution to avoid
these panics.

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Quentin Monnet há 2 anos atrás
pai
commit
a339ce8192
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      Cargo.toml

+ 6 - 0
Cargo.toml

@@ -34,3 +34,9 @@ byteorder = "1.2"
 elf = "0.0.10"
 json = "0.11"
 hex = "0.4.3"
+
+[profile.dev]
+
+# TODO: Find a way to re-enable debug assertions by addressing the reports for
+# misaligned pointer dereferences - see issue #77.
+debug-assertions = false