Skip to content

Add a spec for IO#wait not reporting READABLE when nothing is readable - #1396

Merged
andrykonchin merged 1 commit into
ruby:masterfrom
sampokuokkanen:io-wait-mask-not-readable
Nov 16, 2026
Merged

andrykonchin merged 1 commit into
ruby:masterfrom
sampokuokkanen:io-wait-mask-not-readable

Conversation

@sampokuokkanen

Copy link
Copy Markdown
Contributor

The events mask form is documented to answer with the subset of events that became ready, but nothing checked that an event which was merely asked for stays out of the answer.

Reason for adding this: fails on JRuby.

The events mask form is documented to answer with the subset of events that
became ready, but nothing checked that an event which was merely asked for
stays out of the answer.
sampokuokkanen added a commit to sampokuokkanen/jruby that referenced this pull request Sep 9, 2026
The three IO#wait spec files were identical to ruby/spec's, so this is only
what is proposed upstream: the "with a Fiber scheduler" contexts from ruby/spec#1395
and the events mask example from ruby/spec#1396. They sit here until the next
full sync picks them up.

Upstream: ruby/spec#1395
Upstream: ruby/spec#1396
andrykonchin pushed a commit that referenced this pull request Oct 27, 2026
The three IO#wait spec files were identical to ruby/spec's, so this is only
what is proposed upstream: the "with a Fiber scheduler" contexts from #1395
and the events mask example from #1396. They sit here until the next
full sync picks them up.

Upstream: #1395
Upstream: #1396
@andrykonchin

Copy link
Copy Markdown
Member

Thank you!

@andrykonchin
andrykonchin merged commit 56a9a6d into ruby:master Nov 16, 2026
14 checks passed
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