@@ -114,16 +114,15 @@ def test_cargo_miri_test():
114
114
default_ref = "test.cross-target.stdout.ref" if is_foreign else "test.default.stdout.ref"
115
115
filter_ref = "test.filter.cross-target.stdout.ref" if is_foreign else "test.filter.stdout.ref"
116
116
117
- # macOS needs permissive provenance inside getrandom.
118
117
test ("`cargo miri test`" ,
119
118
cargo_miri ("test" ),
120
119
default_ref , "test.stderr-empty.ref" ,
121
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance -Zmiri- seed=feed" },
120
+ env = {'MIRIFLAGS' : "-Zmiri-seed=feed" },
122
121
)
123
122
test ("`cargo miri test` (no isolation, no doctests)" ,
124
123
cargo_miri ("test" ) + ["--bins" , "--tests" ], # no `--lib`, we disabled that in `Cargo.toml`
125
124
"test.cross-target.stdout.ref" , "test.stderr-empty.ref" ,
126
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance -Zmiri- disable-isolation" },
125
+ env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
127
126
)
128
127
test ("`cargo miri test` (with filter)" ,
129
128
cargo_miri ("test" ) + ["--" , "--format=pretty" , "le1" ],
@@ -132,7 +131,6 @@ def test_cargo_miri_test():
132
131
test ("`cargo miri test` (test target)" ,
133
132
cargo_miri ("test" ) + ["--test" , "test" , "--" , "--format=pretty" ],
134
133
"test.test-target.stdout.ref" , "test.stderr-empty.ref" ,
135
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
136
134
)
137
135
test ("`cargo miri test` (bin target)" ,
138
136
cargo_miri ("test" ) + ["--bin" , "cargo-miri-test" , "--" , "--format=pretty" ],
@@ -150,13 +148,11 @@ def test_cargo_miri_test():
150
148
test ("`cargo miri test` (custom target dir)" ,
151
149
cargo_miri ("test" ) + ["--target-dir=custom-test" ],
152
150
default_ref , "test.stderr-empty.ref" ,
153
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
154
151
)
155
152
del os .environ ["CARGO_TARGET_DIR" ] # this overrides `build.target-dir` passed by `--config`, so unset it
156
153
test ("`cargo miri test` (config-cli)" ,
157
154
cargo_miri ("test" ) + ["--config=build.target-dir=\" config-cli\" " , "-Zunstable-options" ],
158
155
default_ref , "test.stderr-empty.ref" ,
159
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
160
156
)
161
157
162
158
os .chdir (os .path .dirname (os .path .realpath (__file__ )))
0 commit comments