Skip to content

Commit 05fcf86

Browse files
committed
rename test ref files for proper names
1 parent 24d8e8d commit 05fcf86

14 files changed

+10
-10
lines changed

test-cargo-miri/run-test.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test(name, cmd, stdout_ref, stderr_ref, stdin=b'', env={}):
5151
def test_cargo_miri_run():
5252
test("`cargo miri run` (no isolation)",
5353
cargo_miri("run"),
54-
"stdout.ref1", "stderr.ref1",
54+
"run.default.stdout.ref", "run.default.stderr.ref",
5555
stdin=b'12\n21\n',
5656
env={
5757
'MIRIFLAGS': "-Zmiri-disable-isolation",
@@ -60,44 +60,44 @@ def test_cargo_miri_run():
6060
)
6161
test("`cargo miri run` (with arguments and target)",
6262
cargo_miri("run") + ["--bin", "cargo-miri-test", "--", "hello world", '"hello world"'],
63-
"stdout.ref2", "stderr.ref2",
63+
"run.args.stdout.ref", "run.args.stderr.ref",
6464
)
6565
test("`cargo miri run` (subcrate, no ioslation)",
6666
cargo_miri("run") + ["-p", "subcrate"],
67-
"stdout.ref3", "stderr.ref3",
67+
"run.subcrate.stdout.ref", "run.subcrate.stderr.ref",
6868
env={'MIRIFLAGS': "-Zmiri-disable-isolation"},
6969
)
7070

7171
def test_cargo_miri_test():
7272
# rustdoc is not run on foreign targets
7373
is_foreign = 'MIRI_TEST_TARGET' in os.environ
74-
rustdoc_ref = "test.stderr.ref2" if is_foreign else "test.stderr.ref1"
74+
rustdoc_ref = "test.stderr-empty.ref" if is_foreign else "test.stderr-rustdoc.ref"
7575

7676
test("`cargo miri test`",
7777
cargo_miri("test"),
78-
"test.stdout.ref1", rustdoc_ref,
78+
"test.default.stdout.ref", rustdoc_ref,
7979
env={'MIRIFLAGS': "-Zmiri-seed=feed"},
8080
)
8181
test("`cargo miri test` (no isolation)",
8282
cargo_miri("test"),
83-
"test.stdout.ref1", rustdoc_ref,
83+
"test.default.stdout.ref", rustdoc_ref,
8484
env={'MIRIFLAGS': "-Zmiri-disable-isolation"},
8585
)
8686
test("`cargo miri test` (with filter)",
8787
cargo_miri("test") + ["--", "--format=pretty", "le1"],
88-
"test.stdout.ref2", rustdoc_ref,
88+
"test.filter.stdout.ref", rustdoc_ref,
8989
)
9090
test("`cargo miri test` (test target)",
9191
cargo_miri("test") + ["--test", "test", "--", "--format=pretty"],
92-
"test.stdout.ref3", "test.stderr.ref2",
92+
"test.test-target.stdout.ref", "test.stderr-empty.ref",
9393
)
9494
test("`cargo miri test` (bin target)",
9595
cargo_miri("test") + ["--bin", "cargo-miri-test", "--", "--format=pretty"],
96-
"test.stdout.ref4", "test.stderr.ref2",
96+
"test.bin-target.stdout.ref", "test.stderr-empty.ref",
9797
)
9898
test("`cargo miri test` (subcrate, no isolation)",
9999
cargo_miri("test") + ["-p", "subcrate"],
100-
"test.stdout.ref5", "test.stderr.ref2",
100+
"test.subcrate.stdout.ref", "test.stderr-empty.ref",
101101
env={'MIRIFLAGS': "-Zmiri-disable-isolation"},
102102
)
103103

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)