diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a1fdb61..096a9b7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -84,19 +84,19 @@ jobs: - name: Valgrind Test env: - CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1" + CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1 --suppressions=valgrind.supp"" run: cargo test --release --features xxh32,const_xxh32,xxh64,const_xxh64,xxh3,const_xxh3 - name: Valgrind Test(No SSE2) env: RUSTFLAGS: "-Ctarget-feature=-sse2" - CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1" + CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1 --suppressions=valgrind.supp"" run: cargo test --release --features xxh32,const_xxh32,xxh64,const_xxh64,xxh3,const_xxh3 - name: Valgrind Test(AVX2) env: RUSTFLAGS: "-Ctarget-feature=+avx2" - CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1" + CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1 --suppressions=valgrind.supp"" run: cargo test --release --features xxh32,const_xxh32,xxh64,const_xxh64,xxh3,const_xxh3 #- name: Miri Test(No SSE2) diff --git a/valgrind.supp b/valgrind.supp new file mode 100644 index 0000000..9c1e809 --- /dev/null +++ b/valgrind.supp @@ -0,0 +1,9 @@ +{ + rust_compiler_leak_error_on_panic_in_rt + Memcheck:Leak + match-leak-kinds: possible + fun:malloc + fun:*rt*lang_start_internal* + fun:*rt*lang_start* + fun:main +}