more docs
This commit is contained in:
@@ -155,6 +155,7 @@ unsafe fn test_path_link(dir_fd: wasi::Fd) {
|
||||
"errno should be ERRNO_NOENT"
|
||||
);
|
||||
|
||||
// XXX windows doesnt support dangling symlinks - rest of file
|
||||
// Create a link to a dangling symlink
|
||||
wasi::path_symlink("target", dir_fd, "symlink").expect("creating a dangling symlink");
|
||||
|
||||
|
||||
@@ -134,6 +134,7 @@ unsafe fn test_path_rename(dir_fd: wasi::Fd) {
|
||||
wasi::fd_close(fd).expect("closing a file");
|
||||
wasi::path_unlink_file(dir_fd, "target").expect("removing a file");
|
||||
|
||||
// XXX windows does not support this operation
|
||||
// Try renaming to an (empty) directory instead
|
||||
create_file(dir_fd, "source");
|
||||
wasi::path_create_directory(dir_fd, "target").expect("creating a directory");
|
||||
|
||||
Reference in New Issue
Block a user