Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert error on ambiguous fstflags #96

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Dec 9, 2023

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.

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.
Copy link
Collaborator

@loganek loganek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yagehu
Copy link
Contributor Author

yagehu commented Jun 12, 2024

Can anyone merge this?

@loganek loganek merged commit 917cd15 into WebAssembly:main Jun 12, 2024
11 checks passed
@loganek
Copy link
Collaborator

loganek commented Jun 12, 2024

Sorry for missing that, merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants