summaryrefslogtreecommitdiff
path: root/test/mkmf/test_convertible.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-10 09:11:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-10 09:11:10 +0000
commitb38cc52c136b9aa46ee1b0cf644aa50778f41d2c (patch)
tree29862e7f96757f7b50478cffd828449302ecb994 /test/mkmf/test_convertible.rb
parentfe1f0df92b87357c5592cb1ecafd50f9ef40ce4c (diff)
* 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_convertible.rb')
-rw-r--r--test/mkmf/test_convertible.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mkmf/test_convertible.rb b/test/mkmf/test_convertible.rb
index 82189ff..539998a 100644
--- a/test/mkmf/test_convertible.rb
+++ b/test/mkmf/test_convertible.rb
@@ -6,7 +6,7 @@ class TestMkmf
["", ["signed ", ""], "unsigned "].each do |signed, prefix|
%w[short int long].each do |type|
assert_equal((prefix || signed)+type,
- mkmf {convertible_int(signed+type)})
+ mkmf {convertible_int(signed+type)}, MKMFLOG)
end
end
end
@@ -19,7 +19,7 @@ class TestMkmf
}
$defs.clear
assert_equal((prefix || signed)+type,
- mkmf {convertible_int("test1_t", "confdefs.h")})
+ mkmf {convertible_int("test1_t", "confdefs.h")}, MKMFLOG)
(u = signed[/^u/]) and u.upcase!
assert_includes($defs, "-DTYPEOF_TEST1_T="+"#{prefix||signed}#{type}".quote)
assert_includes($defs, "-DPRI_TEST1T_PREFIX=PRI_#{type.upcase}_PREFIX")