diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-04 01:31:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-04 01:31:15 +0000 |
commit | 3fde686433c4a68de34ff093d3656c53198129db (patch) | |
tree | 56acb0638c47b0b65b9e5b95c72e521a07227961 /test/mkmf | |
parent | a47336f78614e3c6b8f26ecd04c43e00ae30722b (diff) | |
download | ruby-3fde686433c4a68de34ff093d3656c53198129db.tar.gz |
mkmf/base.rb: capture output
* test/mkmf/base.rb (TestMkmf::Base::Capture#write): capture
output inside mkmf method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r-- | test/mkmf/base.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb index dbaf666887..d8e2a04fe7 100644 --- a/test/mkmf/base.rb +++ b/test/mkmf/base.rb @@ -49,7 +49,11 @@ module TestMkmf::Base @filter = block end def write(s) - @buffer << s if @out + if @out + @buffer << s + elsif @origin + @origin << s + end end end |