wasi-testsuite
wasi-testsuite copied to clipboard
Assert error on ambiguous fstflags
This commit adds a Rust test case that asserts an ambiguous fstflags
input to fd_filestat_set_times
should result in inval
errno. An fstflags
argument is ambiguous if:
- both
atim
andatim_now
are set, or - both
mtim
andmtim_now
are set.
This assertion is consistent with Wasmtime and WasmEdge's current behavior.