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

fix build and test errors #69

Merged
merged 2 commits into from
Dec 31, 2021
Merged

Conversation

BraulioVM
Copy link
Contributor

@BraulioVM BraulioVM commented Dec 31, 2021

After rust-lang/rust#85746 , ErrorKind::Other
is not what it used to. This library depended on ErrorKind::Other in a
couple places for error handling, and that's I believe why the tests
were failing.

I've changed those bits of error handling to rely on the raw_os_error
instead. This should be more granular than the kind, but also more
stable. I believe I've chosen the right error codes that we were
supposed to handle, and the tests now pass (in my machine anyway lol).

I've also changed a couple doc tests that were failing to compile.

After these changes, running cargo test succeeds.

Fixes: #59

After rust-lang/rust#85746 , `ErrorKind::Other`
is not what it used to. This library depended on `ErrorKind::Other` in a
couple places for error handling, and that's I believe why the tests
were failing.

I've changed those bits of error handling to rely on the `raw_os_error`
instead. This should be more granular than the `kind`, but also more
stable. I believe I've chosen the right error codes that we were
supposed to handle, and the tests now pass (in my machine anyway lol).

I've also changed a couple doc tests that were failing to compile.

After these changes, running `cargo test` succeeds.
@Noah-Kennedy Noah-Kennedy merged commit 4807d0e into tokio-rs:master Dec 31, 2021
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.

Test failure: Os { code: 9, kind: Uncategorized, message: "Bad file descriptor" }
3 participants