Skip to content

Commit 69c6363

Browse files
committed
Fix windows failure on collision_dylib.
1 parent a10eb01 commit 69c6363

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/testsuite/collisions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ fn collision_dylib() {
3939
.file("b/src/lib.rs", "")
4040
.build();
4141

42-
p.cargo("build")
42+
// j=1 is required because on windows you'll get an error because
43+
// two processes will be writing to the file at the same time.
44+
p.cargo("build -j=1")
4345
.with_stderr_contains(&format!("\
4446
[WARNING] output filename collision.
4547
The lib target `a` in package `b v1.0.0 ([..]/foo/b)` has the same output filename as the lib target `a` in package `a v1.0.0 ([..]/foo/a)`.

0 commit comments

Comments
 (0)