зеркало из https://github.com/github/ruby.git
* test/mkmf/base.rb (TestMkmf#setup): run quietly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6852bf0933
Коммит
5d8fd7f1ba
|
@ -1,4 +1,6 @@
|
|||
Mon Dec 6 23:17:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Mon Dec 6 23:18:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/mkmf/base.rb (TestMkmf#setup): run quietly.
|
||||
|
||||
* test/mkmf/test_find_executable.rb (test_find_executable): use
|
||||
configured results.
|
||||
|
|
|
@ -14,16 +14,11 @@ class TestMkmf < Test::Unit::TestCase
|
|||
@curdir = Dir.pwd
|
||||
@mkmfobj = Object.new
|
||||
Dir.chdir(@tmpdir)
|
||||
class << (@output = "")
|
||||
def flush; end
|
||||
def reopen(*) end
|
||||
alias write <<
|
||||
end
|
||||
$stdout = @output
|
||||
@quiet, Logging.quiet = Logging.quiet, true
|
||||
end
|
||||
|
||||
def teardown
|
||||
$stdout = STDOUT
|
||||
Logging.quiet = @quiet
|
||||
Dir.chdir(@curdir)
|
||||
FileUtils.rm_rf(@tmpdir)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче