소스 검색

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