unlink behavior on macos...

This commit is contained in:
Pat Hickey
2021-02-01 19:22:10 -08:00
parent ca657186f2
commit 80fce7c1c8

View File

@@ -20,6 +20,7 @@ unsafe fn test_unlink_file_trailing_slashes(dir_fd: wasi::Fd) {
wasi::path_unlink_file(dir_fd, "dir/")
.expect_err("unlink_file on a directory should fail")
.raw_error(),
macos => wasi::ERRNO_PERM,
unix => wasi::ERRNO_ISDIR,
windows => wasi::ERRNO_ACCES
);