This commit is contained in:
Pat Hickey
2021-01-28 13:20:52 -08:00
parent 201a888d92
commit 1d057af64d
2 changed files with 9 additions and 13 deletions

View File

@@ -62,8 +62,6 @@ unsafe fn create_symlink_to_directory(dir_fd: wasi::Fd) {
// Replace the target directory with a file.
wasi::path_unlink_file(dir_fd, "symlink").expect("remove symlink to directory");
// FIXME: use the line below instead of the line above, and this test passes on windows!
//wasi::path_remove_directory(dir_fd, "symlink").expect("remove symlink to directory");
wasi::path_remove_directory(dir_fd, "target")
.expect("remove_directory on a directory should succeed");
}