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/test_sizeof.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/test_sizeof.rb')
-rw-r--r-- | test/mkmf/test_sizeof.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mkmf/test_sizeof.rb b/test/mkmf/test_sizeof.rb index a44e609c06..4e3c77e8e3 100644 --- a/test/mkmf/test_sizeof.rb +++ b/test/mkmf/test_sizeof.rb @@ -4,7 +4,7 @@ class TestMkmf class TestSizeof < TestMkmf def test_sizeof_builtin %w[char short int long float double void*].each do |type| - assert_kind_of(Integer, mkmf {check_sizeof(type)}) + assert_kind_of(Integer, mkmf {check_sizeof(type)}, MKMFLOG) end end @@ -12,7 +12,7 @@ class TestMkmf open("confdefs.h", "w") {|f| f.puts "typedef struct {char x;} test1_t;" } - assert_equal(1, mkmf {check_sizeof("test1_t", "confdefs.h")}) + assert_equal(1, mkmf {check_sizeof("test1_t", "confdefs.h")}, MKMFLOG) end end end |