summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 01:31:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-04 01:31:15 +0000
commit7995eb43cbf3ae9f9a6bd0e6f925a1e9e9163c12 (patch)
tree56acb0638c47b0b65b9e5b95c72e521a07227961 /test
parent051127abec6736d944ec03551193e7c42ebc5edb (diff)
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')
-rw-r--r--test/mkmf/base.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index dbaf666..d8e2a04 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