summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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