File.dirname, File.link and File.symlink failed rubinius spec test
------------------------------------------------------------------

                 Key: JRUBY-1990
                 URL: http://jira.codehaus.org/browse/JRUBY-1990
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Ubuntu 7.10
            Reporter: Wirianto Djunaidi
            Priority: Minor
         Attachments: jruby-file_dirname_link.patch

File.tagurize faild rubinius's dirname_spec.rb as follow:
1)
File.dirname dirname should return all the components of filename except the 
last one FAILED
Expected "/holy///schnikies/" to equal "/holy///schnikies": 
./mspec/expectations.rb:10:in `fail_with'
./mspec/matchers/base.rb:8:in `=='
/home/shared/rubinius/./spec/ruby/1.8/core/file/dirname_spec.rb:8
/home/shared/rubinius/./spec/ruby/1.8/core/file/dirname_spec.rb:4:in `call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/home/shared/rubinius/./spec/ruby/1.8/core/file/dirname_spec.rb:3
/home/shared/rubinius/./spec/ruby/1.8/core/file/dirname_spec.rb:3:in `load'
tmp/last_mspec.rb:15
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10



File.link and File.symlink on existing target raise wrong Error
...
2)
File.link raises an Errno::EEXIST if the target already exists FAILED
Expected Errno::EEXIST but got SystemCallError (bad symlink): 
./mspec/expectations.rb:10:in `fail_with'
./mspec/expectations/should.rb:6:in `should'
/home/shared/rubinius/./spec/ruby/1.8/core/file/link_spec.rb:27
/home/shared/rubinius/./spec/ruby/1.8/core/file/link_spec.rb:27:in `call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/home/shared/rubinius/./spec/ruby/1.8/core/file/link_spec.rb:3
/home/shared/rubinius/./spec/ruby/1.8/core/file/link_spec.rb:3:in `load'
tmp/last_mspec.rb:15
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10
...
6)
File.symlink raises an Errno::EEXIST if the target already exists FAILED
Expected Errno::EEXIST but got SystemCallError (bad symlink): 
./mspec/expectations.rb:10:in `fail_with'
./mspec/expectations/should.rb:6:in `should'
/home/shared/rubinius/./spec/ruby/1.8/core/file/symlink_spec.rb:33
/home/shared/rubinius/./spec/ruby/1.8/core/file/symlink_spec.rb:33:in `call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/home/shared/rubinius/./spec/ruby/1.8/core/file/symlink_spec.rb:4
/home/shared/rubinius/./spec/ruby/1.8/core/file/symlink_spec.rb:4:in `load'
tmp/last_mspec.rb:15
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10


-- 
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

Reply via email to