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

Assert error on ambiguous fstflags

Open yagehu opened this issue 1 year ago • 0 comments

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:

  1. both atim and atim_now are set, or
  2. both mtim and mtim_now are set.

This assertion is consistent with Wasmtime and WasmEdge's current behavior.

yagehu avatar Dec 09 '23 06:12 yagehu