Details

    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      jruby --1.9 -ve "p File.new('README').size"
      jruby 1.6.0.dev (ruby 1.9.2dev trunk -1) (2010-05-24 6be8758) (Java HotSpot(TM) Client VM 1.6.0_20) [x86-java]
      -e:1:in `size': No such file or directory - -1 (Errno::ENOENT)
              from -e:1
      

      This also leads to a bunch of RubySpec failures in 1.9 mode. Will fix.

      mspec ci -tj -T --1.9 core\file\size_spec.rb
      jruby 1.6.0.dev (ruby 1.9.2dev trunk -1) (2010-05-24 6be8758) (Java HotSpot(TM) Client VM 1.6.0_20) [x86-java]
      .........EEEEE
      
      1)
      File#size returns the file's size as a Fixnum ERROR
      Errno::ENOENT: No such file or directory - -1
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `size'
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:37
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:36
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `load'
      D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
      
      2)
      File#size returns the file's size in bytes ERROR
      Errno::ENOENT: No such file or directory - -1
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:60:in `size'
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:60
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:37
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:36
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `load'
      D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
      
      3)
      File#size returns the cached size of the file if subsequently deleted ERROR
      Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/12-i_exist
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:64
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:37
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:36
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `load'
      D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
      
      4)
      File#size returns the file's current size even if modified ERROR
      Errno::ENOENT: No such file or directory - -1
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:70:in `size'
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:70
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:37
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:36
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `load'
      D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
      
      5)
      File#size returns 0 for an empty file ERROR
      Errno::ENOENT: No such file or directory - -1
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:76:in `size'
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:76
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:37
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:36
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `load'
      D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
      
      6)
      An exception occurred during: after :each
      File#size returns 0 for an empty file ERROR
      Errno::EACCES: Permission denied - D:/work/jruby-dev/rubyspec.git/rubyspec_temp/14-i_exist
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:48
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:37
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:36
      D:/work/jruby-dev/rubyspec.git/core/file/size_spec.rb:56:in `load'
      D:/work/jruby-dev/mspec.git/bin/mspec-ci:8
      
      Finished in 0.104000 seconds
      
      1 file, 14 examples, 9 expectations, 0 failures, 6 errors
      

        Issue Links

          Activity

          Vladimir Sizikov made changes -
          Field Original Value New Value
          Link This issue relates to JRUBY-4149 [ JRUBY-4149 ]
          Charles Oliver Nutter made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Vladimir Sizikov [ vvs ] Charles Oliver Nutter [ headius ]
          Resolution Fixed [ 1 ]
          Thomas E Enebo made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Thomas E Enebo made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Assignee Charles Oliver Nutter [ headius ] Thomas E Enebo [ enebo ]
          Fix Version/s JRuby 1.7.4 [ 19106 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Thomas E Enebo
              Reporter:
              Vladimir Sizikov
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: