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

Add failing test for debugging file descriptor and return 0 on BrokenPipe instead of Error #3201

Closed
wants to merge 8 commits into from

Conversation

fschutt
Copy link
Contributor

@fschutt fschutt commented Sep 27, 2022

This is a WIP PR for #3125

The compiled wasm file should panic with an "EACESS" error, currently it panics with "EBADF"

cc @syrusakbary

This is the correct behaviour, since the pipe isn't "broken", it
just can't be read from anymore
@fschutt fschutt changed the title WIP: Added failing test for debugging file descriptor Add failing test for debugging file descriptor and return 0 on BrokenPipe instead of Error Sep 28, 2022
@fschutt
Copy link
Contributor Author

fschutt commented Sep 28, 2022

@syrusakbary This PR depends on #3145 because #3145 changes the WasiPipe API. It would be better to merge that first, then continue here.

Also, updating the compiler version seems to have broken a lot of test cases for some reason.

@fschutt
Copy link
Contributor Author

fschutt commented Oct 19, 2022

Superseded by #3240

@fschutt fschutt closed this Oct 19, 2022
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.

WasiPipe should return 0 (no bytes read), not BrokenPipe WASI: file system rights doesn't work
1 participant