@@ -20,6 +20,7 @@ fn binary_with_debug() {
20
20
& [ "foo" ] ,
21
21
& [ "foo" , "foo.dSYM" ] ,
22
22
& [ "foo.exe" , "foo.pdb" ] ,
23
+ & [ "foo.exe" ] ,
23
24
) ;
24
25
}
25
26
@@ -55,6 +56,7 @@ fn static_library_with_debug() {
55
56
& [ "libfoo.a" ] ,
56
57
& [ "libfoo.a" ] ,
57
58
& [ "foo.lib" ] ,
59
+ & [ "libfoo.a" ] ,
58
60
) ;
59
61
}
60
62
@@ -90,6 +92,8 @@ fn dynamic_library_with_debug() {
90
92
& [ "libfoo.so" ] ,
91
93
& [ "libfoo.dylib" ] ,
92
94
& [ "foo.dll" , "foo.dll.lib" ] ,
95
+ // FIXME https://github.com/rust-lang/cargo/pull/6875
96
+ & [ "foo.dll" ] ,
93
97
) ;
94
98
}
95
99
@@ -124,6 +128,7 @@ fn rlib_with_debug() {
124
128
& [ "libfoo.rlib" ] ,
125
129
& [ "libfoo.rlib" ] ,
126
130
& [ "libfoo.rlib" ] ,
131
+ & [ "libfoo.rlib" ] ,
127
132
) ;
128
133
}
129
134
@@ -167,6 +172,7 @@ fn include_only_the_binary_from_the_current_package() {
167
172
& [ "foo" ] ,
168
173
& [ "foo" , "foo.dSYM" ] ,
169
174
& [ "foo.exe" , "foo.pdb" ] ,
175
+ & [ "foo.exe" ] ,
170
176
) ;
171
177
}
172
178
@@ -242,6 +248,7 @@ fn avoid_build_scripts() {
242
248
& [ "a" , "b" ] ,
243
249
& [ "a" , "a.dSYM" , "b" , "b.dSYM" ] ,
244
250
& [ "a.exe" , "a.pdb" , "b.exe" , "b.pdb" ] ,
251
+ & [ "a.exe" , "b.exe" ] ,
245
252
) ;
246
253
}
247
254
@@ -266,17 +273,23 @@ fn cargo_build_out_dir() {
266
273
& [ "foo" ] ,
267
274
& [ "foo" , "foo.dSYM" ] ,
268
275
& [ "foo.exe" , "foo.pdb" ] ,
276
+ & [ "foo.exe" ] ,
269
277
) ;
270
278
}
271
279
272
280
fn check_dir_contents (
273
281
out_dir : & Path ,
274
282
expected_linux : & [ & str ] ,
275
283
expected_mac : & [ & str ] ,
276
- expected_win : & [ & str ] ,
284
+ expected_win_msvc : & [ & str ] ,
285
+ expected_win_gnu : & [ & str ] ,
277
286
) {
278
287
let expected = if cfg ! ( target_os = "windows" ) {
279
- expected_win
288
+ if cfg ! ( target_env = "msvc" ) {
289
+ expected_win_msvc
290
+ } else {
291
+ expected_win_gnu
292
+ }
280
293
} else if cfg ! ( target_os = "macos" ) {
281
294
expected_mac
282
295
} else {
0 commit comments