IO.sysopen can't handle directories
-----------------------------------
Key: JRUBY-4033
URL: http://jira.codehaus.org/browse/JRUBY-4033
Project: JRuby
Issue Type: Bug
Components: RubySpec
Affects Versions: JRuby 1.3.1
Environment: jruby 1.5.0dev (ruby 1.8.7 patchlevel 174) (2009-10-02
853e083) (Java HotSpot(TM) Client VM 1.6.0_03) [i386-java]
Reporter: Vladimir Sizikov
{code}
IO.sysopen('/tmp') -->
Errno::ENOENT: No such file or directory - /tmp
{code}
While it works just fine on MRI.
This also fails one rubyspec:
{code}
jruby -S mspec core/io/sysopen_spec.rb
jruby 1.5.0dev (ruby 1.8.7 patchlevel 174) (2009-10-02 853e083) (Java
HotSpot(TM) Client VM 1.6.0_03) [i386-java]
.E..
1)
IO.sysopen works on directories ERROR
Errno::ENOENT: No such file or directory - /tmp/
/opt/work/rubyspec.git/core/io/sysopen_spec.rb:21:in `sysopen'
/opt/work/rubyspec.git/core/io/sysopen_spec.rb:21
/opt/work/rubyspec.git/core/io/sysopen_spec.rb:3
/opt/work/rubyspec.git/core/io/sysopen_spec.rb:55:in `load'
/opt/work/mspec.git/bin/mspec-run:8
{code}
--
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