diff --git a/tests/run-make/read-root-dir/main.c b/tests/run-make/read-root-dir/main.c index b18016b..0c72824 100644 --- a/tests/run-make/read-root-dir/main.c +++ b/tests/run-make/read-root-dir/main.c @@ -5,7 +5,9 @@ int main(int argc, char *argv[]) { int root = open("/", O_RDONLY, O_DIRECTORY); - assert(errno == ENOTCAPABLE); + // wasi-libc returns ENOENT since wasi-sdk 19, but returns ENOTCAPABLE before that + // https://github.com/WebAssembly/wasi-libc/pull/370 + assert(errno == ENOENT || errno == ENOTCAPABLE); assert(root == -1); return 0; }