[Rubygems-developers] Question about test_gem_commands_install_command.rb

Daniel Berger djberg96 at gmail.com
Wed May 6 09:40:10 EDT 2009


Hi,

Ruby 1.8.6-p111

I was running the rubygems tests on Vista tonight and I hit this one:

C:\Users\djberge\workspace\rubygems>ruby -Ilib
test\test_gem_commands_install_command.rb
Loaded suite test/test_gem_commands_install_command
Started
....F......
Finished in 4.055000 seconds.

 1) Failure:
test_no_user_install(TestGemCommandsInstallCommand)
[test/test_gem_commands_install_command.rb:122]:
[Gem::FilePermissionError] exception expected, not
Class: <Gem::SystemExitException>
Message: <"Exiting RubyGems with exit_code 0">
---Backtrace---
C:/Users/djberge/workspace/rubygems/test/../lib/rubygems/commands/install_co
mmand.rb:130:in `execute'
test/test_gem_commands_install_command.rb:123:in `test_no_user_install'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:135:in
`assert_raises'
test/test_gem_commands_install_command.rb:122:in `test_no_user_install'
./lib/rubygems/user_interaction.rb:40:in `use_ui'
./lib/rubygems/user_interaction.rb:63:in `use_ui'
test/test_gem_commands_install_command.rb:115:in `test_no_user_install'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:434:in
`__send__'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:434:in
`run'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:413:in
`run_test_suites'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:407:in
`each'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:407:in
`run_test_suites'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:406:in
`each'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:406:in
`run_test_suites'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:386:in
`run'
C:/Ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb:327:in
`autorun'
test/test_gem_commands_install_command.rb:227
---------------

11 tests, 50 assertions, 1 failures, 0 errors, 0 skips

The test itself should probably be skipped on Windows since it's based on a
0755/0555 perm setting, which Windows won't understand (it only understands
0644 and 0444).

What's confusing me is how this test -ever- passed on Windows, but I don't
see a change to the file since March 7th, 2009.

Any ideas why it would suddenly start failing? And shouldn't we just skip it
on Windows?

Regards,

Dan


More information about the Rubygems-developers mailing list