-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove fd_filestat_get.rs #59
Conversation
Because it seems testing something very specific to wasmtime. cf. bytecodealliance/wasmtime#4531
I propose we keep this test, and document that |
while it's reasonable to allow the implementations to return 0, |
|
Actually, I've got some thoughts about the change introduced in WebAssembly/WASI#531 - it says:
I wonder if the documentation should be updated saying that this must be zero for stdio? Otherwise, there'll be inconsistency across multiple implementations, unless there are good reasons to keep those timestamps non-zero for stdio. Any thoughts? |
my thinking is that there is little reason to treat stdio that special. for example, there are filesystems which doesn't have timestamps at all. allowing zeros can benefit such filesystems/platforms. |
I don't have a strong preference here. But if the spec doesn't explicitly say that timestamps for stdio should be zero, I agree the test should be removed. If we want to keep the test, I think the doc must be updated accordingly. |
i'm not sure what you are talking about. |
The doc says:
which means it might or might not be zero. But the test expects that the size/time is always zero. The test is more specific than the documentation, which means that for some of the runtimes the test might fail. |
ok. i was misreading your comment. thank you for explanation. |
@sunfishcode , unless you have any concerns, I'll merge the PR |
I'm going to merge this PR as there are no concerns raised. Please open an issue for further discussion if needed. |
Because it seems testing something very specific to wasmtime.
cf. bytecodealliance/wasmtime#4531