File.new with APPEND mode fails RubySpecs
-----------------------------------------
Key: JRUBY-4564
URL: http://jira.codehaus.org/browse/JRUBY-4564
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules, RubySpec
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
The specs were added in
{noformat}
e8c779551b1d5f10ae3065d501fda8802d020a1e
Author: Yusuke Endoh <[email protected]>
Date: Thu Feb 11 21:22:25 2010 +0900
File.new with File::APPEND should work with readonly mode
According to [ruby-dev:40397], 1.8.2 -- 1.8.8 have a bug. Will be
fixed.
{noformat}
JRuby currently fails them.
{noformat}
jruby -S mspec core\file\new_spec.rb
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-02-16 2770c7f) (Java
HotSpot(TM) Client VM 1.6.0_18) [x86-java]
.........EE.......E
1)
File.new returns a new File when use File::APPEND mode ERROR
Errno::EINVAL: Invalid argument - Invalid file
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:102:in `initialize'
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:102:in `new'
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:102
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8
2)
File.new returns a new File when use File::RDONLY|File::APPEND mode ERROR
Errno::EINVAL: Invalid argument - Invalid file
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:108:in `initialize'
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:108:in `new'
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:108
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:4
D:/work/jruby-dev/rubyspec.git/core/file/new_spec.rb:56:in `load'
D:/work/jruby-dev/mspec.git/bin/mspec-run:8
{noformat}
--
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