Browse Source

Try fixing CI on appveyor

add-rc-path
Alex Crichton 10 years ago
parent
commit
efbbc2b3a4
  1. 5
      tests/test.rs

5
tests/test.rs

@ -23,7 +23,7 @@ impl Test {
fn new() -> Test { fn new() -> Test {
let mut gcc = PathBuf::from(env::current_exe().unwrap()); let mut gcc = PathBuf::from(env::current_exe().unwrap());
gcc.pop(); gcc.pop();
gcc.push("gcc-shim"); gcc.push(format!("gcc-shim{}", env::consts::EXE_SUFFIX));
Test { Test {
td: TempDir::new("gcc-test").unwrap(), td: TempDir::new("gcc-test").unwrap(),
gcc: gcc, gcc: gcc,
@ -45,7 +45,8 @@ impl Test {
} }
fn shim(&self, name: &str) -> &Test { fn shim(&self, name: &str) -> &Test {
fs::hard_link(&self.gcc, self.td.path().join(name)).unwrap(); let fname = format!("{}{}", name, env::consts::EXE_SUFFIX);
fs::hard_link(&self.gcc, self.td.path().join(fname)).unwrap();
self self
} }

Loading…
Cancel
Save