Skip to content

Commit 9186812

Browse files
Removing file after rename must succeed
Co-Authored-By: Ralf Jung <post@ralfj.de>
1 parent f7e0857 commit 9186812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-pass/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn main() {
9393
rename(&path1, &path2).unwrap();
9494
assert_eq!(ErrorKind::NotFound, path1.metadata().unwrap_err().kind());
9595
assert!(path2.metadata().unwrap().is_file());
96-
remove_file(&path2).ok();
96+
remove_file(&path2).unwrap();
9797

9898
// The two following tests also check that the `__errno_location()` shim is working properly.
9999
// Opening a non-existing file should fail with a "not found" error.

0 commit comments

Comments
 (0)