Add test for dangling file/dir handles (#566)

* Add test for dangling file/dir handles

This commit adds a test for dangling file/dir handles. The logic is
quite simple: we first create a resource (file or dir), get a WASI file
descriptor to it, remove the resource without closing the FD, and then
try to re-create it.

* Disable on Windows for now
This commit is contained in:
Jakub Konka
2019-11-15 23:28:50 +01:00
committed by GitHub
parent 5edbd9b967
commit 9896a5cabd
2 changed files with 97 additions and 0 deletions

View File

@@ -168,6 +168,7 @@ cfg_if::cfg_if! {
"truncation_rights" => true,
"poll_oneoff" => true,
"path_link" => true,
"dangling_fd" => true,
_ => false,
}
} else {