Skip to content

Sporadic failure in premature IO close test #6382

@headius

Description

@headius

Another sporadic failure that may or may not only be happening on JDK 11 or higher:

org/jruby/RubyKernel.java:1258:in `catch'
org/jruby/RubyKernel.java:1263:in `catch'
org/jruby/RubyKernel.java:1258:in `catch'
org/jruby/RubyKernel.java:1263:in `catch'
     54:     f = File.open(@file)
     55:     @to_close << g = IO.new(f.fileno)
     56:     f.close
  => 57:     assert_raises(Errno::EBADF) { g.readchar }
     58:     assert_raises(Errno::EBADF) { g.readline }
     59:     assert_raises(Errno::EBADF) { g.gets }
     60:     assert_raises(Errno::EBADF) { g.close }
/home/travis/build/jruby/jruby/test/jruby/test_io.rb:57:in `test_premature_close_raises_appropriate_errors'
<Errno::EBADF> expected but was
<EOFError(<End of file reached>)>
diff:
?    Err     n  o::EBADF         
? EOF   or(<E d  f file reached>)
Failure: test_premature_close_raises_appropriate_errors(TestIO)

Example failing build: https://travis-ci.org/github/jruby/jruby/jobs/722496573#L1123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions