Bug #7885

Build failure: test_initialize_user_install issues under Windows

Added by Luis Lavena about 1 year ago. Updated about 1 year ago.

[ruby-core:52533]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:test
Target version:2.0.0
ruby -v:ruby 2.0.0dev (2013-02-19 trunk 39320) [x64-mingw32] Backport:

Description

=begin

Latest changes to RubyGems into ruby20_0 branch are causing failures in RubyInstaller CI:

http://ci.rubyinstaller.org/job/ruby-2_0_0-x64-test-all/10/console
http://ci.rubyinstaller.org/job/ruby-2_0_0-x86-test-all/10/console

1) Failure:
testinitializeuserinstall(TestGemInstaller) [C:/Users/Worker/Jenkins/workspace/ruby-200-x64-build/test/rubygems/testgeminstaller.rb:672]:
--- expected
+++ actual
@@ -1 +1 @@
-"C:/Users/Worker/AppData/Local/Temp/test
rubygems2320/userhome/.gem/ruby/2.0.0/bin"
+"C:\Users\Worker\AppData\Local\Temp\test
rubygems_2320\userhome\.gem\ruby\2.0.0\bin"

Seems that the path obtained is not converted to posix like (via File.expand_path) or the expected value turned into the native-compatible one.

=end


Related issues

Related to Backport200 - Backport #7888: Backport r39324 to ruby 2.0.0 to fix windows test failure Closed 02/20/2013

Associated revisions

Revision 39324
Added by Eric Hodel about 1 year ago

  • lib/rubygems/installer.rb: Use gsub instead of gsub! to avoid altering @bin_dir. Fixes tests on windows. [ruby-trunk - Bug #7885]

History

#1 Updated by Eric Hodel about 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39324.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rubygems/installer.rb: Use gsub instead of gsub! to avoid altering @bin_dir. Fixes tests on windows. [ruby-trunk - Bug #7885]

Also available in: Atom PDF