@@ -142,24 +142,19 @@ def test_cargo_miri_run():
142
142
)
143
143
144
144
def test_cargo_miri_test ():
145
- # rustdoc is not run on foreign targets
146
- is_foreign = ARGS .target is not None
147
- default_ref = "test.cross-target.stdout.ref" if is_foreign else "test.default.stdout.ref"
148
- filter_ref = "test.filter.cross-target.stdout.ref" if is_foreign else "test.filter.stdout.ref"
149
-
150
145
test ("`cargo miri test`" ,
151
146
cargo_miri ("test" ),
152
- default_ref , "test.empty.ref" ,
147
+ "test.default.stdout.ref" , "test.empty.ref" ,
153
148
env = {'MIRIFLAGS' : "-Zmiri-seed=4242" },
154
149
)
155
150
test ("`cargo miri test` (no isolation, no doctests)" ,
156
151
cargo_miri ("test" ) + ["--bins" , "--tests" ], # no `--lib`, we disabled that in `Cargo.toml`
157
- "test.cross-target .stdout.ref" , "test.empty.ref" ,
152
+ "test.no-doc .stdout.ref" , "test.empty.ref" ,
158
153
env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
159
154
)
160
155
test ("`cargo miri test` (with filter)" ,
161
156
cargo_miri ("test" ) + ["--" , "--format=pretty" , "pl" ],
162
- filter_ref , "test.empty.ref" ,
157
+ "test.filter.stdout.ref" , "test.empty.ref" ,
163
158
)
164
159
test ("`cargo miri test` (test target)" ,
165
160
cargo_miri ("test" ) + ["--test" , "test" , "--" , "--format=pretty" ],
@@ -171,7 +166,7 @@ def test_cargo_miri_test():
171
166
)
172
167
test ("`cargo miri t` (subcrate, no isolation)" ,
173
168
cargo_miri ("t" ) + ["-p" , "subcrate" ],
174
- "test.subcrate.cross-target.stdout.ref" if is_foreign else "test.subcrate. stdout.ref" ,
169
+ "test.subcrate.stdout.ref" ,
175
170
"test.empty.ref" ,
176
171
env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
177
172
)
@@ -181,12 +176,12 @@ def test_cargo_miri_test():
181
176
)
182
177
test ("`cargo miri test` (custom target dir)" ,
183
178
cargo_miri ("test" ) + ["--target-dir=custom-test" ],
184
- default_ref , "test.empty.ref" ,
179
+ "test.default.stdout.ref" , "test.empty.ref" ,
185
180
)
186
181
del os .environ ["CARGO_TARGET_DIR" ] # this overrides `build.target-dir` passed by `--config`, so unset it
187
182
test ("`cargo miri test` (config-cli)" ,
188
183
cargo_miri ("test" ) + ["--config=build.target-dir=\" config-cli\" " ],
189
- default_ref , "test.empty.ref" ,
184
+ "test.default.stdout.ref" , "test.empty.ref" ,
190
185
)
191
186
if ARGS .multi_target :
192
187
test_cargo_miri_multi_target ()
0 commit comments