Fix remove_directory_trailing_slashes on Windows

This commit provides a fix for `remove_directory_trailing_slashes`
test case on Windows. It adds a missing mapping between the following
WinAPI error code and WASI error:

```
ERROR_DIRECTORY => __WASI_ENOTDIR
```

where `ERROR_DIRECTORY` is thrown when the directory name is invalid.
This commit is contained in:
Jakub Konka
2019-10-20 09:43:13 +02:00
parent ef010b44b7
commit 0d63cc2dbc
3 changed files with 4 additions and 2 deletions

View File

@@ -186,7 +186,6 @@ mod wasm_tests {
"fd_readdir" => true,
"path_rename_trailing_slashes" => true,
"path_symlink_trailing_slashes" => true,
"remove_directory_trailing_slashes" => true,
_ => false,
}
} else {