@@ -142,24 +142,19 @@ def test_cargo_miri_run():
142142 )
143143
144144def 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-
150145 test ("`cargo miri test`" ,
151146 cargo_miri ("test" ),
152- default_ref , "test.empty.ref" ,
147+ "test.default.stdout.ref" , "test.empty.ref" ,
153148 env = {'MIRIFLAGS' : "-Zmiri-seed=4242" },
154149 )
155150 test ("`cargo miri test` (no isolation, no doctests)" ,
156151 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" ,
158153 env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
159154 )
160155 test ("`cargo miri test` (with filter)" ,
161156 cargo_miri ("test" ) + ["--" , "--format=pretty" , "pl" ],
162- filter_ref , "test.empty.ref" ,
157+ "test.filter.stdout.ref" , "test.empty.ref" ,
163158 )
164159 test ("`cargo miri test` (test target)" ,
165160 cargo_miri ("test" ) + ["--test" , "test" , "--" , "--format=pretty" ],
@@ -171,7 +166,7 @@ def test_cargo_miri_test():
171166 )
172167 test ("`cargo miri t` (subcrate, no isolation)" ,
173168 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" ,
175170 "test.empty.ref" ,
176171 env = {'MIRIFLAGS' : "-Zmiri-disable-isolation" },
177172 )
@@ -181,12 +176,12 @@ def test_cargo_miri_test():
181176 )
182177 test ("`cargo miri test` (custom target dir)" ,
183178 cargo_miri ("test" ) + ["--target-dir=custom-test" ],
184- default_ref , "test.empty.ref" ,
179+ "test.default.stdout.ref" , "test.empty.ref" ,
185180 )
186181 del os .environ ["CARGO_TARGET_DIR" ] # this overrides `build.target-dir` passed by `--config`, so unset it
187182 test ("`cargo miri test` (config-cli)" ,
188183 cargo_miri ("test" ) + ["--config=build.target-dir=\" config-cli\" " ],
189- default_ref , "test.empty.ref" ,
184+ "test.default.stdout.ref" , "test.empty.ref" ,
190185 )
191186 if ARGS .multi_target :
192187 test_cargo_miri_multi_target ()
0 commit comments