IO#close rubysecs failures
--------------------------
Key: JRUBY-2022
URL: http://jira.codehaus.org/browse/JRUBY-2022
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC1
Environment: Latest JRuby 1.1RC1 from trunk
Reporter: Vladimir Sizikov
I've just added some IO#close rubyspecs, and many of them fail on JRuby:
bin/mspec -t r spec/ruby/1.8/core/io/close_spec.rb
Started
....
Finished in 0.088134 seconds
4 examples, 10 expectations, 0 failures, 0 errors
[EMAIL PROTECTED]:328] -- << /opt/work/rubinius >>
#>bin/mspec -t j spec/ruby/1.8/core/io/close_spec.rb
Started
.FFF
1)
IO#close makes the stream unavailable for any further data operations FAILED
Expected IOError but got Errno::EBADF (Bad file descriptor):
./mspec/expectations.rb:10:in `fail_with'
./mspec/expectations/should.rb:6:in `should'
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:19
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:19:in `call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:3
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:3:in `load'
tmp/last_mspec.rb:15
tmp/last_mspec.rb:10
2)
IO#close raises an IOError on subsequent invocations FAILED
Expected IOError but got Errno::EBADF (Bad file descriptor):
./mspec/expectations.rb:10:in `fail_with'
./mspec/expectations/should.rb:6:in `should'
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:26
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:26:in `call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:3
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:3:in `load'
tmp/last_mspec.rb:15
tmp/last_mspec.rb:10
3)
IO#close sets $? if the stream is opened by IO.popen FAILED
Expected nil to equal 0:
./mspec/expectations.rb:10:in `fail_with'
./mspec/matchers/base.rb:8:in `=='
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:32
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:30:in `call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:3
/opt/work/rubinius/./spec/ruby/1.8/core/io/close_spec.rb:3:in `load'
tmp/last_mspec.rb:15
tmp/last_mspec.rb:10
Finished in 0.306000 seconds
4 examples, 6 expectations, 3 failures, 0 errors
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email