Fully clean sanitizer builds before each run
@@ -80,10 +80,7 @@ script:
sanitizers)
pushd benchmarks/stress2 &&
echo "lsan" &&
- cargo clean -p sled_sync &&
- cargo clean -p pagecache &&
- cargo clean -p pagetable &&
- cargo clean -p sled &&
+ cargo clean &&
export RUSTFLAGS="-Z sanitizer=leak" &&
cargo build --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu &&
sudo rm -rf default.sled &&
@@ -91,10 +88,7 @@ script:
sudo target/x86_64-unknown-linux-gnu/debug/stress2 --duration=6 &&
echo "asan" &&
- cargo clean -p sled_sync &&
- cargo clean -p pagecache &&
- cargo clean -p pagetable &&
- cargo clean -p sled &&
+ cargo clean &&
export RUSTFLAGS="-Z sanitizer=address" &&
export ASAN_OPTIONS="detect_odr_violation=0" &&
cargo build --features=lock_free_delays,no_jemalloc --target x86_64-unknown-linux-gnu &&
@@ -104,10 +98,7 @@ script:
unset ASAN_OPTIONS &&
echo "tsan" &&
- cargo clean -p sled_sync &&
- cargo clean -p pagecache &&
- cargo clean -p pagetable &&
- cargo clean -p sled &&
+ cargo clean &&
export RUSTFLAGS="-Z sanitizer=thread" &&
export TSAN_OPTIONS=suppressions=/home/travis/build/spacejam/sled/tsan_suppressions.txt &&
sudo rm -rf default.sled &&
