forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#2838 - DebugSteven:disable-epoll_wait, r=oli-obk
throw unsupported for `epoll_wait` This PR throws unsupported to indicate miri doesn't yet return ready events. Previously it always returned 0, indicating no ready events, even if events for the epoll file descriptor may have been ready.
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/tools/miri/tests/pass-dep/tokio/sleep.rs → src/tools/miri/tests/fail/tokio/sleep.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
error: unsupported operation: returning ready events from epoll_wait is not yet implemented | ||
--> CARGO_REGISTRY/.../epoll.rs:LL:CC | ||
| | ||
LL | / syscall!(epoll_wait( | ||
LL | | self.ep, | ||
LL | | events.as_mut_ptr(), | ||
LL | | events.capacity() as i32, | ||
LL | | timeout, | ||
LL | | )) | ||
| |__________^ returning ready events from epoll_wait is not yet implemented | ||
| | ||
= help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support | ||
|
||
error: aborting due to previous error | ||
|