.cargo/vendor/bytes/ci/tsan.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | export ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0" |
| 6 | |
| 7 | # Run address sanitizer |
| 8 | RUSTFLAGS="-Z sanitizer=address" \ |
| 9 | cargo test --target x86_64-unknown-linux-gnu --test test_bytes --test test_buf --test test_buf_mut |
| 10 | |
| 11 | # Run thread sanitizer |
| 12 | RUSTFLAGS="-Z sanitizer=thread" \ |
| 13 | cargo -Zbuild-std test --target x86_64-unknown-linux-gnu --test test_bytes --test test_buf --test test_buf_mut |