diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-10 09:11:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-10 09:11:10 +0000 |
commit | b38cc52c136b9aa46ee1b0cf644aa50778f41d2c (patch) | |
tree | 29862e7f96757f7b50478cffd828449302ecb994 /test/mkmf/base.rb | |
parent | fe1f0df92b87357c5592cb1ecafd50f9ef40ce4c (diff) | |
download | ruby-b38cc52c136b9aa46ee1b0cf644aa50778f41d2c.tar.gz |
* 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
Diffstat (limited to 'test/mkmf/base.rb')
-rw-r--r-- | test/mkmf/base.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb index 79f46ed202..4ceb35087a 100644 --- a/test/mkmf/base.rb +++ b/test/mkmf/base.rb @@ -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 |