1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/mkmf.rb (Logging.log_close): separate from Logging.logfile.

* test/mkmf/base.rb (TestMkmf::MKMFLOG): show mkmf.log at failures.
* test/mkmf/base.rb (TestMkmf#teardown): close log file for each tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-10 09:11:10 +00:00
parent fe1f0df92b
commit b38cc52c13
5 changed files with 22 additions and 4 deletions

View file

@ -9,6 +9,11 @@ $INCFLAGS << " -I."
$extout_prefix = "$(extout)$(target_prefix)/"
class TestMkmf < Test::Unit::TestCase
MKMFLOG = proc {File.read("mkmf.log") rescue ""}
class << MKMFLOG
alias to_s call
end
def setup
@tmpdir = Dir.mktmpdir
@curdir = Dir.pwd
@ -19,6 +24,7 @@ class TestMkmf < Test::Unit::TestCase
def teardown
Logging.quiet = @quiet
Logging.log_close
Dir.chdir(@curdir)
FileUtils.rm_rf(@tmpdir)
end