Skip to content

Commit e451957

Browse files
committed
Create temp dir in same dir as gcc-shim
In case the temporary director is not deleted, this makes it easy to find. It also means that it will get removed when `cargo clean` removes the target directory.
1 parent b43413f commit e451957

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/support/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ impl Test {
2626
if gcc.ends_with("deps") {
2727
gcc.pop();
2828
}
29+
let td = TempDir::new_in(&gcc, "gcc-test").unwrap();
2930
gcc.push(format!("gcc-shim{}", env::consts::EXE_SUFFIX));
3031
Test {
31-
td: TempDir::new("gcc-test").unwrap(),
32+
td: td,
3233
gcc: gcc,
3334
msvc: false,
3435
}

0 commit comments

Comments
 (0)