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

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
This commit is contained in:
nobu 2015-11-04 01:31:15 +00:00
parent 051127abec
commit 7995eb43cb

View file

@ -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