You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/testsuite/collisions.rs
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
#[cfg(not(target_env = "msvc"))]
2
1
use cargo_test_support::basic_manifest;
3
2
use cargo_test_support::project;
4
3
use std::env;
@@ -56,7 +55,6 @@ This may become a hard error in the future; see <https://github.com/rust-lang/ca
56
55
}
57
56
58
57
#[cargo_test]
59
-
#[cfg(not(target_env = "msvc"))]
60
58
fncollision_example(){
61
59
// Examples in a workspace can easily collide.
62
60
let p = project()
@@ -73,7 +71,9 @@ fn collision_example() {
73
71
.file("b/examples/ex1.rs","fn main() {}")
74
72
.build();
75
73
76
-
p.cargo("build --examples")
74
+
// `j=1` is required because on Windows you'll get an error due to
75
+
// two processes writing to the file at the same time.
76
+
p.cargo("build --examples -j=1")
77
77
.with_stderr_contains("\
78
78
[WARNING] output filename collision.
79
79
The example target `ex1` in package `b v1.0.0 ([..]/foo/b)` has the same output filename as the example target `ex1` in package `a v1.0.0 ([..]/foo/a)`.
0 commit comments