Skip to content

Commit

Permalink
Close the link
Browse files Browse the repository at this point in the history
  • Loading branch information
marmistrz committed Mar 4, 2020
1 parent a8a1d84 commit 94a29ca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
wasi::path_link(dir_fd, 0, "file", subdir_fd, "link").expect("creating a link in subdirectory");
link_fd = open_link(subdir_fd, "link");
check_rights(file_fd, link_fd);
wasi::fd_close(link_fd).expect("closing link_fd"); // NON-STRICT
wasi::path_unlink_file(subdir_fd, "link").expect("removing a link");
wasi::path_remove_directory(dir_fd, "subdir").expect("removing subdir");

Expand Down

0 comments on commit 94a29ca

Please sign in to comment.