Skip to content

Commit 7e48143

Browse files
committed
Re-add msan test
1 parent eb52a94 commit 7e48143

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,27 @@ jobs:
155155
run: |
156156
set -eo pipefail
157157
scripts/sanitizers.sh
158-
158+
msan_tree_tests:
159+
name: MSAN doc tests
160+
env:
161+
RUST_BACKTRACE: 1
162+
runs-on: ubuntu-latest
163+
steps:
164+
- uses: actions/checkout@v1
165+
- name: Cache rustup
166+
uses: actions/cache@v2
167+
env:
168+
cache-name: cache-msan-tree-target-and-lockfile
169+
with:
170+
path: |
171+
~/.rustup
172+
target
173+
Cargo.lock
174+
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
175+
- name: sanitizers
176+
run: |
177+
rustup toolchain install nightly
178+
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
179+
export RUSTFLAGS="-Zsanitizer=memory -Zsanitizer-memory-track-origins"
180+
export MSAN_OPTIONS=verbosity=2
181+
cargo +nightly test --doc -Zbuild-std --target x86_64-unknown-linux-gnu --features=light_testing -- --nocapture --test-threads=1

0 commit comments

Comments
 (0)