tests: macos-specific behavior

This commit is contained in:
Pat Hickey
2021-02-01 18:30:58 -08:00
parent d83dba47a3
commit c77a11bd5c
4 changed files with 26 additions and 2 deletions

View File

@@ -10,6 +10,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
);