Skip to content

Commit 8159cda

Browse files
authored
Try to fix CI (#659)
Looks like this is related to the changes in `Command` on Windows done awhile back in the standard library.
1 parent 421f06b commit 8159cda

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/support/mod.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ impl Test {
6262
}
6363

6464
pub fn shim(&self, name: &str) -> &Test {
65-
link_or_copy(
66-
&self.gcc,
67-
self.td
68-
.path()
69-
.join(&format!("{}{}", name, env::consts::EXE_SUFFIX)),
70-
)
71-
.unwrap();
65+
let name = if name.ends_with(env::consts::EXE_SUFFIX) {
66+
name.to_string()
67+
} else {
68+
format!("{}{}", name, env::consts::EXE_SUFFIX)
69+
};
70+
link_or_copy(&self.gcc, self.td.path().join(name)).unwrap();
7271
self
7372
}
7473

0 commit comments

Comments
 (0)