@@ -147,16 +147,15 @@ def test_cargo_miri_test():
147
147
default_ref = "test.cross-target.stdout.ref" if is_foreign else "test.default.stdout.ref"
148
148
filter_ref = "test.filter.cross-target.stdout.ref" if is_foreign else "test.filter.stdout.ref"
149
149
150
- # macOS needs permissive provenance inside getrandom_1.
151
150
test ("`cargo miri test`" ,
152
151
cargo_miri ("test" ),
153
152
default_ref , "test.stderr-empty.ref" ,
154
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance -Zmiri- seed=4242" },
153
+ env = {'MIRIFLAGS' : "-Zmiri-seed=4242" },
155
154
)
156
155
test ("`cargo miri test` (no isolation, no doctests)" ,
157
156
cargo_miri ("test" ) + ["--bins" , "--tests" ], # no `--lib`, we disabled that in `Cargo.toml`
158
157
"test.cross-target.stdout.ref" , "test.stderr-empty.ref" ,
159
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance -Zmiri- disable-isolation" },
158
+ env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
160
159
)
161
160
test ("`cargo miri test` (with filter)" ,
162
161
cargo_miri ("test" ) + ["--" , "--format=pretty" , "pl" ],
@@ -165,7 +164,6 @@ def test_cargo_miri_test():
165
164
test ("`cargo miri test` (test target)" ,
166
165
cargo_miri ("test" ) + ["--test" , "test" , "--" , "--format=pretty" ],
167
166
"test.test-target.stdout.ref" , "test.stderr-empty.ref" ,
168
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
169
167
)
170
168
test ("`cargo miri test` (bin target)" ,
171
169
cargo_miri ("test" ) + ["--bin" , "cargo-miri-test" , "--" , "--format=pretty" ],
@@ -183,13 +181,11 @@ def test_cargo_miri_test():
183
181
test ("`cargo miri test` (custom target dir)" ,
184
182
cargo_miri ("test" ) + ["--target-dir=custom-test" ],
185
183
default_ref , "test.stderr-empty.ref" ,
186
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
187
184
)
188
185
del os .environ ["CARGO_TARGET_DIR" ] # this overrides `build.target-dir` passed by `--config`, so unset it
189
186
test ("`cargo miri test` (config-cli)" ,
190
187
cargo_miri ("test" ) + ["--config=build.target-dir=\" config-cli\" " ],
191
188
default_ref , "test.stderr-empty.ref" ,
192
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
193
189
)
194
190
if ARGS .multi_target :
195
191
test_cargo_miri_multi_target ()
@@ -199,7 +195,6 @@ def test_cargo_miri_multi_target():
199
195
test ("`cargo miri test` (multiple targets)" ,
200
196
cargo_miri ("test" , targets = ["aarch64-unknown-linux-gnu" , "s390x-unknown-linux-gnu" ]),
201
197
"test.multiple_targets.stdout.ref" , "test.stderr-empty.ref" ,
202
- env = {'MIRIFLAGS' : "-Zmiri-permissive-provenance" },
203
198
)
204
199
205
200
args_parser = argparse .ArgumentParser (description = '`cargo miri` testing' )
0 commit comments