Skip to content

Commit 18955b2

Browse files
committed
also test parts of std
1 parent 4a36dfb commit 18955b2

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

library/std/benches/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Disabling in Miri as these would take too long.
2+
#![cfg(not(miri))]
13
#![feature(test)]
24

35
extern crate test;

library/std/tests/process_spawning.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#![cfg(not(target_env = "sgx"))]
2+
// Process spawning does not work in Miri.
3+
#![cfg(not(miri))]
24

35
use std::env;
46
use std::fs;

src/bootstrap/mk/Makefile.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,21 @@ check-aux:
5757
library/core \
5858
library/alloc \
5959
--no-doc
60+
# Some doctests have intentional memory leaks.
6061
$(Q)MIRIFLAGS="-Zmiri-ignore-leaks -Zmiri-disable-isolation" \
6162
$(BOOTSTRAP) miri --stage 2 \
6263
library/core \
6364
library/alloc \
6465
--doc
66+
# In `std` we cannot test everything, so we test the most target-dependent modules.
67+
$(Q)MIRIFLAGS="-Zmiri-disable-isolation" BOOTSTRAP_SKIP_TARGET_SANITY=1 \
68+
$(BOOTSTRAP) miri --stage 2 library/std \
69+
--no-doc -- \
70+
time:: sync:: thread:: env::
71+
$(Q)MIRIFLAGS="-Zmiri-ignore-leaks -Zmiri-disable-isolation" BOOTSTRAP_SKIP_TARGET_SANITY=1 \
72+
$(BOOTSTRAP) miri --stage 2 library/std \
73+
--doc -- \
74+
time:: sync:: thread:: env::
6575
dist:
6676
$(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
6777
distcheck:

0 commit comments

Comments
 (0)