Skip to content

Commit 919c897

Browse files
committed
fixup! test: migrate multitarget to snapbox
to see what it should be on windows
1 parent b6fdb4a commit 919c897

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

tests/testsuite/multitarget.rs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,24 @@ fn simple_test() {
6565
.file("src/lib.rs", "fn main() {}")
6666
.build();
6767

68-
p.cargo("test")
69-
.arg("--target")
70-
.arg(&t1)
71-
.arg("--target")
72-
.arg(&t2)
73-
.with_stderr_data(
74-
str![[r#"
68+
let expected = if cfg!(target_os = "windows") {
69+
str![].unordered()
70+
} else {
71+
str![[r#"
7572
[RUNNING] unittests src/lib.rs (target/[ALT_TARGET]/debug/deps/foo-[HASH])
7673
[RUNNING] unittests src/lib.rs (target/[HOST_TARGET]/debug/deps/foo-[HASH])
7774
...
7875
7976
"#]]
80-
.unordered(),
81-
)
77+
.unordered()
78+
};
79+
80+
p.cargo("test")
81+
.arg("--target")
82+
.arg(&t1)
83+
.arg("--target")
84+
.arg(&t2)
85+
.with_stderr_data(expected)
8286
.run();
8387
}
8488

0 commit comments

Comments
 (0)