File tree 1 file changed +5
-1
lines changed 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
91
91
}
92
92
93
93
#[ cargo_test]
94
+ // --out-dir and examples are currently broken on MSVC.
95
+ // See https://github.com/rust-lang/cargo/issues/7493
94
96
#[ cfg( not( target_env = "msvc" ) ) ]
95
97
fn collision_export ( ) {
96
98
// `--out-dir` combines some things which can cause conflicts.
@@ -100,7 +102,9 @@ fn collision_export() {
100
102
. file ( "src/main.rs" , "fn main() {}" )
101
103
. build ( ) ;
102
104
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" )
104
108
. masquerade_as_nightly_cargo ( )
105
109
. with_stderr_contains ( "\
106
110
[WARNING] `--out-dir` filename collision.
You can’t perform that action at this time.
0 commit comments