Skip to content

Commit

Permalink
Try to fix CI (#659)
Browse files Browse the repository at this point in the history
Looks like this is related to the changes in `Command` on Windows done
awhile back in the standard library.
  • Loading branch information
alexcrichton authored Feb 15, 2022
1 parent 421f06b commit 8159cda
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ impl Test {
}

pub fn shim(&self, name: &str) -> &Test {
link_or_copy(
&self.gcc,
self.td
.path()
.join(&format!("{}{}", name, env::consts::EXE_SUFFIX)),
)
.unwrap();
let name = if name.ends_with(env::consts::EXE_SUFFIX) {
name.to_string()
} else {
format!("{}{}", name, env::consts::EXE_SUFFIX)
};
link_or_copy(&self.gcc, self.td.path().join(name)).unwrap();
self
}

Expand Down

0 comments on commit 8159cda

Please sign in to comment.