IO.binmode should  raise an IOError on closed stream
----------------------------------------------------

                 Key: JRUBY-4011
                 URL: http://jira.codehaus.org/browse/JRUBY-4011
             Project: JRuby
          Issue Type: Bug
          Components: RubySpec
    Affects Versions: JRuby 1.3.1
         Environment: jruby 1.4.0dev (ruby 1.8.7 patchlevel 174) (2009-09-28 
704b415) (Java HotSpot(TM) Client VM 1.6.0_03) [i386-java]
            Reporter: Vladimir Sizikov
            Priority: Minor


See MRI bug: http://redmine.ruby-lang.org/issues/show/2046

MRI 1.9 raises an error when binmode is used on closed stream, earlier versions 
were not.
Looks like it was fixed in 1.8 branch, but (not yet?) in 1.8.7 branch. MRI 
1.8.7, MRI 1.8.6 and JRuby fail the following rubyspec:

{noformat}
>mspec -t j ruby/core/io/binmode_spec.rb
jruby 1.4.0dev (ruby 1.8.7 patchlevel 174) (2009-09-28 704b415) (Java 
HotSpot(TM) Client VM 1.6.0_03) [i386-java]
F.

1)
IO#binmode raises an IOError on closed stream FAILED
Expected IOError but no exception was raised
/opt/work/jruby.git/spec/ruby/core/io/binmode_spec.rb:18
/opt/work/jruby.git/spec/ruby/core/io/binmode_spec.rb:4
/opt/work/jruby.git/spec/ruby/core/io/binmode_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8
{noformat}

This needs to be investigated, whether we need to fix this or not. For now, an 
exclusion.


-- 
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


Reply via email to