Преглед на файлове

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 преди 2 години
родител
ревизия
a339ce8192
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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