Skip to content

Commit 737d9aa

Browse files
committed
auto merge of #766 : alexcrichton/cargo/fix-test-state, r=alexcrichton
Ensure that a system `rm -rf target` will continue to work across test runs.
2 parents 99c8768 + 96ca6eb commit 737d9aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_cargo_compile.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,4 +1683,5 @@ test!(ignore_bad_directories {
16831683
fs::mkdir(&foo.root().join("tmp"), io::USER_EXEC ^ io::USER_EXEC).unwrap();
16841684
assert_that(foo.process(cargo_dir().join("cargo")).arg("build"),
16851685
execs().with_status(0));
1686+
fs::chmod(&foo.root().join("tmp"), io::USER_DIR).unwrap();
16861687
})

0 commit comments

Comments
 (0)