We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2205ed5 commit 93bedd0Copy full SHA for 93bedd0
test-cargo-miri/run-test.py
@@ -62,18 +62,22 @@ def test_cargo_miri_run():
62
)
63
64
def test_cargo_miri_test():
65
+ # rustdoc is not run on foreign targets
66
+ is_foreign = 'MIRI_TEST_TARGET' in os.environ
67
+ rustdoc_ref = "test.stderr.ref2" if is_foreign else "test.stderr.ref"
68
+
69
test("cargo miri test",
70
cargo_miri("test"),
- "test.stdout.ref", "test.stderr.ref",
71
+ "test.stdout.ref",rustdoc_ref,
72
env={'MIRIFLAGS': "-Zmiri-seed=feed"},
73
74
test("cargo miri test (with filter)",
75
cargo_miri("test") + ["--", "--format=pretty", "le1"],
- "test.stdout.ref2", "test.stderr.ref"
76
+ "test.stdout.ref2", rustdoc_ref
77
78
test("cargo miri test (without isolation)",
79
cargo_miri("test") + ["--", "--format=pretty", "num_cpus"],
- "test.stdout.ref3", "test.stderr.ref",
80
+ "test.stdout.ref3", rustdoc_ref,
81
env={'MIRIFLAGS': "-Zmiri-disable-isolation"},
82
83
test("cargo miri test (test target)",
0 commit comments