File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ This may become a hard error in the future; see <https://github.com/rust-lang/ca
9191}
9292
9393#[ cargo_test]
94+ // --out-dir and examples are currently broken on MSVC.
95+ // See https://github.com/rust-lang/cargo/issues/7493
9496#[ cfg( not( target_env = "msvc" ) ) ]
9597fn collision_export ( ) {
9698 // `--out-dir` combines some things which can cause conflicts.
@@ -100,7 +102,9 @@ fn collision_export() {
100102 . file ( "src/main.rs" , "fn main() {}" )
101103 . build ( ) ;
102104
103- p. cargo ( "build --out-dir=out -Z unstable-options --bins --examples" )
105+ // -j1 to avoid issues with two processes writing to the same file at the
106+ // same time.
107+ p. cargo ( "build -j1 --out-dir=out -Z unstable-options --bins --examples" )
104108 . masquerade_as_nightly_cargo ( )
105109 . with_stderr_contains ( "\
106110 [WARNING] `--out-dir` filename collision.
You can’t perform that action at this time.
0 commit comments