From 47fd6928788d8389003b481c927ac6b45503b00a Mon Sep 17 00:00:00 2001 From: syvb Date: Wed, 10 Jul 2024 00:22:49 -0400 Subject: [PATCH] try running memory sanitizer in CI --- tools/build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/build b/tools/build index 1c302b05..e6f7d6b6 100755 --- a/tools/build +++ b/tools/build @@ -102,7 +102,10 @@ while [ $# -gt 0 ]; do find_profile require_pg_version $nop cargo fetch - $nop cargo test --profile $profile --features "$pg pg_test" --no-default-features + export RUSTC_BOOTSTRAP=1 + export __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS=nightly + export RUSTFLAGS='-Z sanitizer=memory' + $nop cargo test -Zbuild-std --profile $profile --features "$pg pg_test" --no-default-features ;; install)