Skip to content

Commit 5175bb3

Browse files
committed
add many-seeds capabilities to CI
1 parent 7447455 commit 5175bb3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

ci.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ function run_tests {
4242
# Only for host architecture: tests with optimizations (`-O` is what cargo passes, but crank MIR
4343
# optimizations up all the way).
4444
# 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.
4645
MIRIFLAGS="${MIRIFLAGS:-} -O -Zmir-opt-level=4" MIRI_SKIP_UI_CHECKS=1 ./miri test -- tests/{pass,panic}
46+
47+
# Also run some many-seeds tests. 64 seeds means this takes around a minute per test.
48+
for TEST in tests/many-seeds/*.rs; do
49+
MIRI_SEEDS=64 CARGO_EXTRA_FLAGS="$CARGO_EXTRA_FLAGS -q" ./miri many-seeds ./miri run "$FILE"
50+
done
4751
fi
4852

4953
## 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)