[前][次][番号順一覧][スレッド一覧]

ruby-changes:32447

From: nobu <ko1@a...>
Date: Wed, 8 Jan 2014 17:14:00 +0900 (JST)
Subject: [ruby-changes:32447] nobu:r44526 (trunk): rubygems/test_case.rb: fix errors in mkmf tests

nobu	2014-01-08 17:13:56 +0900 (Wed, 08 Jan 2014)

  New Revision: 44526

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44526

  Log:
    rubygems/test_case.rb: fix errors in mkmf tests
    
    * lib/rubygems/test_case.rb (Gem#teardown): BASERUBY is not set
      usually.  fix errors in mkmf tests.

  Modified files:
    trunk/lib/rubygems/test_case.rb
Index: lib/rubygems/test_case.rb
===================================================================
--- lib/rubygems/test_case.rb	(revision 44525)
+++ lib/rubygems/test_case.rb	(revision 44526)
@@ -315,7 +315,11 @@ class Gem::TestCase < MiniTest::Unit::Te https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L315
   def teardown
     $LOAD_PATH.replace @orig_LOAD_PATH if @orig_LOAD_PATH
 
-    RbConfig::CONFIG['BASERUBY'] = @orig_BASERUBY
+    if @orig_BASERUBY
+      RbConfig::CONFIG['BASERUBY'] = @orig_BASERUBY
+    else
+      RbConfig::CONFIG.delete('BASERUBY')
+    end
     RbConfig::CONFIG['arch'] = @orig_arch
 
     if defined? Gem::RemoteFetcher then

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]