On MacOS with wasmtime, filesystem-advice fails:
Test filesystem-advise failed
[exit_code] 0 == 1
STDOUT:
STDERR:
fadvise(7, 0, Advice::WillNeed) => file-too-large (error 7)
This test passes on Windows and Ubuntu.
The failing advise call on MacOS would appear to be offset=7 (which is the size of the file), length=0. The error occurs here: https://github.com/WebAssembly/wasi-testsuite/blob/main/tests/rust/wasm32-wasip3/src/bin/filesystem-advise.rs#L54
Is it reasonable to want to make this not issue an error for WontNeed beyond the end of the file? @alexcrichton @sunfishcode @pchickey