File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,15 @@ function run_tests {
40
40
./miri test
41
41
if [ -z " ${MIRI_TEST_TARGET+exists} " ]; then
42
42
# 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.
46
46
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
47
52
fi
48
53
49
54
# # test-cargo-miri
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments