зеркало из https://github.com/github/ruby.git
* test/rubygems/gemutilities.rb (RubyGemTestCase#build_rake_in):
get rid of interference with other tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5545c5aafa
Коммит
7de38fadc0
|
@ -1,3 +1,8 @@
|
|||
Fri Oct 17 18:07:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/rubygems/gemutilities.rb (RubyGemTestCase#build_rake_in):
|
||||
get rid of interference with other tests.
|
||||
|
||||
Fri Oct 17 11:48:18 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (init_sock): sockets should be binmode.
|
||||
|
|
|
@ -430,6 +430,8 @@ class RubyGemTestCase < Test::Unit::TestCase
|
|||
Gem.module_eval {@ruby = ruby}
|
||||
env_rake = ENV["rake"]
|
||||
ENV["rake"] = @@rake
|
||||
argv = ARGV.dup
|
||||
ARGV.clear
|
||||
yield @@rake
|
||||
ensure
|
||||
Gem.module_eval {@ruby = gem_ruby}
|
||||
|
@ -438,6 +440,7 @@ class RubyGemTestCase < Test::Unit::TestCase
|
|||
else
|
||||
ENV.delete("rake")
|
||||
end
|
||||
ARGV.replace(argv) if argv
|
||||
end
|
||||
|
||||
def self.rubybin
|
||||
|
|
Загрузка…
Ссылка в новой задаче