Project

General

Profile

Bug #7885

Build failure: test_initialize_user_install issues under Windows

Added by luislavena (Luis Lavena) over 5 years ago. Updated over 5 years ago.

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

Description

=begin

Latest changes to RubyGems into ruby_2_0_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:
test_initialize_user_install(TestGemInstaller) [C:/Users/Worker/Jenkins/workspace/ruby-2_0_0-x64-build/test/rubygems/test_gem_installer.rb:672]:
--- expected
+++ actual
@@ -1 +1 @@
-"C:/Users/Worker/AppData/Local/Temp/test_rubygems_2320/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 failureClosed2013-02-20

Associated revisions

Revision cd8ef79d
Added by drbrain (Eric Hodel) over 5 years ago

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 39324
Added by drbrain (Eric Hodel) over 5 years ago

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

Revision 39324
Added by drbrain (Eric Hodel) over 5 years ago

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

Revision 39324
Added by drbrain (Eric Hodel) over 5 years ago

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

Revision 39324
Added by drbrain (Eric Hodel) over 5 years ago

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

Revision 39324
Added by drbrain (Eric Hodel) over 5 years ago

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

Revision bf2b8c89
Added by drbrain (Eric Hodel) over 5 years ago

Merge trunk revision: 39324

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1 Updated by drbrain (Eric Hodel) over 5 years 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