diff --git a/tests/testsuite/collisions.rs b/tests/testsuite/collisions.rs index 1ce197fb88e..6fc4406ae4a 100644 --- a/tests/testsuite/collisions.rs +++ b/tests/testsuite/collisions.rs @@ -39,7 +39,9 @@ fn collision_dylib() { .file("b/src/lib.rs", "") .build(); - p.cargo("build") + // j=1 is required because on windows you'll get an error because + // two processes will be writing to the file at the same time. + p.cargo("build -j=1") .with_stderr_contains(&format!("\ [WARNING] output filename collision. 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)`.