-
-
Notifications
You must be signed in to change notification settings - Fork 390
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 upstreamed specs (Dec 2024) #1226
Conversation
b8a240e
to
5f6459f
Compare
5f6459f
to
8ff5cfd
Compare
8ff5cfd
to
5900f86
Compare
|
||
platform_is :windows do | ||
SystemCallError.new(-1).message.should == "The operation completed successfully." | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Observed strange behaviour on Windows. CRuby calls strerror
on Windows to get a string description for errno
and it returns unexpected strings for unsupported errno codes (e.g. negative or not listed in https://learn.microsoft.com/en-us/cpp/c-runtime-library/errno-constants)
095e1e2
to
5900f86
Compare
|
||
io.path.should == "a.txt" | ||
io.path.should == "a.txt" | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By some reason specs fail on macOS/Ubintu on CI with error:
-----------------------------------------------------
The rubyspec temp directory is not empty. Ensure that
all specs are cleaning up temporary files:
/Users/runner/work/spec/spec/rubyspec_temp/[59](https://github.com/ruby/spec/actions/runs/12241512394/job/34146769462?pr=1226#step:9:60)61
-----------------------------------------------------
1)
An exception occurred during: after :each
C-API IO function rb_io_open_descriptor sets the specified path ERROR
Errno::EBADF: Bad file descriptor @ fptr_finalize_flush - /Users/runner/work/spec/spec/rubyspec_temp/59[61](https://github.com/ruby/spec/actions/runs/12241512394/job/34146769462?pr=1226#step:9:62)/110-c_api_io_specs
/Users/runner/work/spec/spec/optional/capi/io_spec.rb:218:in `close'
/Users/runner/work/spec/spec/optional/capi/io_spec.rb:218:in `block (2 levels) in <top (required)>'
/Users/runner/work/spec/spec/optional/capi/io_spec.rb:205:in `<top (required)>'
Cannot reproduce it locally. So I decided just to quarantine them until the issue is investigated.
https://github.com/ruby/spec/actions/runs/12241512394/job/34146769462
https://github.com/ruby/spec/actions/runs/12241608299/job/34147078428
d1edff6
to
749826e
Compare
No description provided.