File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- e95b10ba4ac4564ed25f7eef143e3182c33b3902
1
+ c7ce69faf2a7ea16c15d922985ca27ba70da30ee
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ impl Dlsym {
17
17
pub fn from_str(name: &str) -> InterpResult<'static, Option<Dlsym>> {
18
18
Ok(match name {
19
19
"getentropy" => Some(Dlsym::getentropy),
20
- "openat" => None, // std has a fallback for this
21
20
_ => throw_unsup_format!("unsupported macOS dlsym: {}", name),
22
21
})
23
22
}
Original file line number Diff line number Diff line change @@ -395,6 +395,12 @@ fn test_directory() {
395
395
remove_dir(&dir_path).unwrap();
396
396
// Reading the metadata of a non-existent directory should fail with a "not found" error.
397
397
assert_eq!(ErrorKind::NotFound, check_metadata(&[], &dir_path).unwrap_err().kind());
398
+
399
+ // To test remove_dir_all, re-create the directory with a file and a directory in it.
400
+ create_dir(&dir_path).unwrap();
401
+ drop(File::create(&path_1).unwrap());
402
+ create_dir(&path_2).unwrap();
403
+ remove_dir_all(&dir_path).unwrap();
398
404
}
399
405
400
406
fn test_dup_stdout_stderr() {
You can’t perform that action at this time.
0 commit comments