Skip to content

Commit bc62534

Browse files
test: s/GCCTEST_OUT_DIR/CC_SHIM_OUT_DIR, s/gcc-shim/cc-shim
1 parent a10fd61 commit bc62534

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/bin/gcc-shim.rs renamed to src/bin/cc-shim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ fn main() {
1414
let program = args.next().expect("Unexpected empty args");
1515

1616
let out_dir = PathBuf::from(
17-
env::var_os("GCCTEST_OUT_DIR")
18-
.unwrap_or_else(|| panic!("{}: GCCTEST_OUT_DIR not found", program)),
17+
env::var_os("CC_SHIM_OUT_DIR")
18+
.unwrap_or_else(|| panic!("{}: CC_SHIM_OUT_DIR not found", program)),
1919
);
2020

2121
// Find the first nonexistent candidate file to which the program's args can be written.

tests/support/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ impl Test {
4444
if gcc.ends_with("deps") {
4545
gcc.pop();
4646
}
47-
let td = Builder::new().prefix("gcc-test").tempdir_in(&gcc).unwrap();
48-
gcc.push(format!("gcc-shim{}", env::consts::EXE_SUFFIX));
47+
let td = Builder::new().prefix("cc-shim-test").tempdir_in(&gcc).unwrap();
48+
gcc.push(format!("cc-shim{}", env::consts::EXE_SUFFIX));
4949
Test {
5050
td,
5151
gcc,
@@ -98,7 +98,7 @@ impl Test {
9898
.debug(false)
9999
.out_dir(self.td.path())
100100
.__set_env("PATH", self.path())
101-
.__set_env("GCCTEST_OUT_DIR", self.td.path());
101+
.__set_env("CC_SHIM_OUT_DIR", self.td.path());
102102
if self.msvc {
103103
cfg.compiler(self.td.path().join("cl"));
104104
cfg.archiver(self.td.path().join("lib.exe"));

0 commit comments

Comments
 (0)