Skip to content

Commit

Permalink
subdir -> subdir1
Browse files Browse the repository at this point in the history
  • Loading branch information
marmistrz committed Mar 4, 2020
1 parent a8a1d84 commit 5a7b9c6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
wasi::path_unlink_file(dir_fd, "link").expect("removing a link");

// Create a link in a different directory and compare rights
wasi::path_create_directory(dir_fd, "subdir").expect("creating a subdirectory");
let subdir_fd = create_or_open(dir_fd, "subdir", wasi::OFLAGS_DIRECTORY);
wasi::path_create_directory(dir_fd, "subdir1").expect("creating a subdirectory");
let subdir_fd = create_or_open(dir_fd, "subdir1", wasi::OFLAGS_DIRECTORY);
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::path_unlink_file(subdir_fd, "link").expect("removing a link");
wasi::path_remove_directory(dir_fd, "subdir").expect("removing subdir");
wasi::path_remove_directory(dir_fd, "subdir1").expect("removing subdir");

// Create a link to a path that already exists
create_file(dir_fd, "link");
Expand Down

0 comments on commit 5a7b9c6

Please sign in to comment.