summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/base.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index 1b5b89e17c..79f46ed202 100644
--- a/test/mkmf/base.rb
+++ b/test/mkmf/base.rb
@@ -14,16 +14,11 @@ class TestMkmf < Test::Unit::TestCase
@curdir = Dir.pwd
@mkmfobj = Object.new
Dir.chdir(@tmpdir)
- class << (@output = "")
- def flush; end
- def reopen(*) end
- alias write <<
- end
- $stdout = @output
+ @quiet, Logging.quiet = Logging.quiet, true
end
def teardown
- $stdout = STDOUT
+ Logging.quiet = @quiet
Dir.chdir(@curdir)
FileUtils.rm_rf(@tmpdir)
end