Add a testcase.

This commit is contained in:
Dan Gohman 2022-03-20 15:54:03 -07:00
parent 95e1702284
commit 6c407d0592

View File

@ -1359,6 +1359,12 @@ fn read_dir_not_found() {
assert_eq!(res.err().unwrap().kind(), ErrorKind::NotFound);
}
#[test]
fn file_open_not_found() {
let res = File::open("/path/that/does/not/exist");
assert_eq!(res.err().unwrap().kind(), ErrorKind::NotFound);
}
#[test]
fn create_dir_all_with_junctions() {
let tmpdir = tmpdir();