Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 03/Jan/13 4:44 PM
Description:

When asking about the current offset in the file, File#seek(0, SEEK_CUR) always returns 0.

As a bonus, File#pos seems to report the correct offset (and disagrees with what #seek(0, SEEK_CUR) reports.

% rspec seek.rb -e SEEK_CUR
Run options: include {:full_description=>/SEEK_CUR/}
FF

Failures:

  1) File#seek(0, IO::SEEK_CUR) file://home/jls/projects/experiments/ruby/jruby-file-seek/input.jar!/input should report expected read positions
     Failure/Error: insist { subject.seek(0, IO::SEEK_CUR) } == 16
     Insist::Failure:
       Expected 16, but got 0
     # ./seek.rb:36:in `(root)'

  2) File#seek(0, IO::SEEK_CUR) input should report expected read positions
     Failure/Error: insist { subject.seek(0, IO::SEEK_CUR) } == 16
     Insist::Failure:
       Expected 16, but got 0
     # ./seek.rb:36:in `(root)'

Finished in 0.029 seconds
2 examples, 2 failures
Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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