Skip to content

Commit 6b0bdf6

Browse files
committed
test: adapt to cygwin target
1 parent e9f8a17 commit 6b0bdf6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testsuite/artifact_dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ fn check_dir_contents(
389389
expected_win_msvc: &[&str],
390390
expected_win_gnu: &[&str],
391391
) {
392-
let expected = if cfg!(target_os = "windows") {
392+
let expected = if cfg!(any(target_os = "windows", target_os = "cygwin")) {
393393
if cfg!(target_env = "msvc") {
394394
expected_win_msvc
395395
} else {

tests/testsuite/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5075,7 +5075,7 @@ fn cdylib_not_lifted() {
50755075

50765076
p.cargo("build").run();
50775077

5078-
let files = if cfg!(windows) {
5078+
let files = if cfg!(any(windows, target_os = "cygwin")) {
50795079
if cfg!(target_env = "msvc") {
50805080
vec!["foo.dll.lib", "foo.dll.exp", "foo.dll"]
50815081
} else {
@@ -5114,7 +5114,7 @@ fn cdylib_final_outputs() {
51145114

51155115
p.cargo("build").run();
51165116

5117-
let files = if cfg!(windows) {
5117+
let files = if cfg!(any(windows, target_os = "cygwin")) {
51185118
if cfg!(target_env = "msvc") {
51195119
vec!["foo_bar.dll.lib", "foo_bar.dll"]
51205120
} else {

0 commit comments

Comments
 (0)