File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Disabling in Miri as these would take too long.
2
+ #![ cfg( not( miri) ) ]
1
3
#![ feature( test) ]
2
4
3
5
extern crate test;
Original file line number Diff line number Diff line change 1
1
#![ cfg( not( target_env = "sgx" ) ) ]
2
+ // Process spawning does not work in Miri.
3
+ #![ cfg( not( miri) ) ]
2
4
3
5
use std:: env;
4
6
use std:: fs;
Original file line number Diff line number Diff line change 1
1
#![ cfg( any( target_family = "unix" , target_family = "windows" ) ) ]
2
+ // Calls functions that are not supported by Miri.
3
+ #![ cfg( not( miri) ) ]
2
4
3
5
use std:: fs:: File ;
4
6
use std:: io:: { Read , Write } ;
Original file line number Diff line number Diff line change @@ -57,11 +57,21 @@ check-aux:
57
57
library/core \
58
58
library/alloc \
59
59
--no-doc
60
+ # Some doctests have intentional memory leaks.
60
61
$(Q ) MIRIFLAGS=" -Zmiri-ignore-leaks -Zmiri-disable-isolation" \
61
62
$(BOOTSTRAP ) miri --stage 2 \
62
63
library/core \
63
64
library/alloc \
64
65
--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
+ --skip fs:: --skip net:: --skip process:: --skip sys::pal::
71
+ $(Q ) MIRIFLAGS=" -Zmiri-ignore-leaks -Zmiri-disable-isolation" BOOTSTRAP_SKIP_TARGET_SANITY=1 \
72
+ $(BOOTSTRAP ) miri --stage 2 library/std \
73
+ --doc -- \
74
+ --skip fs:: --skip net:: --skip process:: --skip sys::pal::
65
75
dist :
66
76
$(Q )$(BOOTSTRAP ) dist $(BOOTSTRAP_ARGS )
67
77
distcheck :
You can’t perform that action at this time.
0 commit comments