wasi-testsuite icon indicating copy to clipboard operation
wasi-testsuite copied to clipboard

wasi:[email protected]: Add tests for errors during open

Open wingo opened this issue 3 months ago • 2 comments

wingo avatar Sep 16 '25 09:09 wingo

On Windows the logs show an error:

Test filesystem-open-errors failed
  [exit_code] 0 == 3
STDOUT:

STDERR:

thread '<unnamed>' (1) panicked at src/bin/filesystem-open-errors.rs:40:5:
assertion `left == right` failed
  left: ErrorCode { code: 19, name: "no-entry", message: "No such file or directory, similar to `ENOENT` in POSIX." }
 right: ErrorCode { code: 30, name: "not-permitted", message: "Operation not permitted, similar to `EPERM` in POSIX." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: failed to run main module `tests\rust\testsuite\wasm32-wasip3\filesystem-open-errors.wasm`

wingo avatar Oct 07 '25 12:10 wingo

Whoops, I take it back, it was just missing a rebase. Tests passing on Windows, MacOS, Ubuntu.

wingo avatar Oct 07 '25 12:10 wingo