StringIO#seek should raise Errno::EINVAL on wrong 'whence' argument -------------------------------------------------------------------
Key: JRUBY-4320 URL: http://jira.codehaus.org/browse/JRUBY-4320 Project: JRuby Issue Type: Bug Components: Extensions, RubySpec Affects Versions: JRuby 1.4 Reporter: Vladimir Sizikov Assignee: Vladimir Sizikov Fix For: JRuby 1.5 StringIO#seek should raise Errno::EINVAL on wrong 'whence' argument. This also fails the new RubySpec test: {noformat} D:\work\jruby-dev\rubyspec.git>mspec -t j library\stringio\seek_spec.rb jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-12-06 a2ba5ec) (Java HotSpot(TM) Client VM 1.6.0_17) [x86-java] ....F... 1) StringIO#seek raises an Errno::EINVAL error on incorrect whence argument FAILED Expected Errno::EINVAL but no exception was raised D:/work/jruby-dev/rubyspec.git/library/stringio/seek_spec.rb:40 D:/work/jruby-dev/rubyspec.git/library/stringio/seek_spec.rb:4 D:/work/jruby-dev/rubyspec.git/library/stringio/seek_spec.rb:55:in `load' D:/work/jruby-dev/mspec.git/bin/mspec-run:8 {noformat} Will fix. -- 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