JRuby

File#chmod always returns -1, fails rubyspec

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.1
  • Fix Version/s: None
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Environment:
    Latest JRuby 1.1.1+
  • Number of attachments :
    0

Description

File#lchmod and File.lchmod essentially now changing anything, they report -1 (error) or 0 (no files changed) respectively.

The following rubyspec fails:

mspec -t j 1.8/core/file/lchmod_spec.rb
F

1)
File.lchmod changes the file mode of the link and not of the file FAILED
Expected 0
 to equal 1

/opt/work/mspec.git/lib/mspec/expectations/expectations.rb:10:in `fail_with'
/opt/work/mspec.git/lib/mspec/matchers/base.rb:9:in `=='
/opt/work/spec/ruby/./1.8/core/file/lchmod_spec.rb:20:in `/opt/work/spec/ruby/./1.8/core/file/lchmod_spec.rb'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:120:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:120:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:46:in `protect'
/opt/work/mspec.git/lib/mspec/runner/state.rb:60:in `process'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `each'
/opt/work/mspec.git/lib/mspec/runner/state.rb:56:in `process'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:27:in `describe'
/opt/work/mspec.git/lib/mspec/runner/object.rb:11:in `describe'
/opt/work/spec/ruby/./1.8/core/file/lchmod_spec.rb:3:in `/opt/work/spec/ruby/./1.8/core/file/lchmod_spec.rb'
/opt/work/spec/ruby/./1.8/core/file/lchmod_spec.rb:45:in `load'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:45:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:120:in `instance_eval'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:120:in `protect'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:45:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:42:in `each'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:42:in `files'
/opt/work/mspec.git/lib/mspec/runner/mspec.rb:34:in `process'
/opt/work/mspec.git/bin/mspec-run:76:in `run'
/opt/work/mspec.git/lib/mspec/utils/script.rb:75:in `main'
/opt/work/mspec.git/bin/mspec-run:83

Finished in 0.259000 seconds

1 file, 1 example, 2 expectations, 1 failure, 0 errors

Activity

Hide
Thomas E Enebo added a comment -

Fixed in the past. Tag removed against spec in commit 8378

Show
Thomas E Enebo added a comment - Fixed in the past. Tag removed against spec in commit 8378

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: