Skip to content

Commit 96ca6eb

Browse files
committed
Don't leave behind corrupt directories
Ensure that a system `rm -rf target` will continue to work across test runs.
1 parent 99c8768 commit 96ca6eb

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)