Skip to content

Commit b3dd240

Browse files
committed
add many-seeds capabilities to CI
1 parent cf24022 commit b3dd240

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

ci.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,15 @@ function run_tests {
4040
./miri test
4141
if [ -z "${MIRI_TEST_TARGET+exists}" ]; then
4242
# Only for host architecture: tests with optimizations (`-O` is what cargo passes, but crank MIR
43-
# optimizations up all the way).
44-
# Optimizations change diagnostics (mostly backtraces), so we don't check them
45-
#FIXME(#2155): we want to only run the pass and panic tests here, not the fail tests.
43+
# optimizations up all the way, too).
44+
# Optimizations change diagnostics (mostly backtraces), so we don't check
45+
# them. Also error locations change so we don't run the failing tests.
4646
MIRIFLAGS="${MIRIFLAGS:-} -O -Zmir-opt-level=4" MIRI_SKIP_UI_CHECKS=1 ./miri test -- tests/{pass,panic}
47+
48+
# Also run some many-seeds tests. 64 seeds means this takes around a minute per test.
49+
for FILE in tests/many-seeds/*.rs; do
50+
MIRI_SEEDS=64 CARGO_EXTRA_FLAGS="$CARGO_EXTRA_FLAGS -q" ./miri many-seeds ./miri run "$FILE"
51+
done
4752
fi
4853

4954
## test-cargo-miri
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//! Regression test for https://github.com/rust-lang/miri/issues/2629
2+
use std::thread;
3+
4+
fn main() {
5+
thread::scope(|s| {
6+
s.spawn(|| {});
7+
});
8+
}

0 commit comments

Comments
 (0)