aboutsummaryrefslogtreecommitdiffstats
path: root/test/mkmf/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkmf/base.rb')
-rw-r--r--test/mkmf/base.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index ea6a9d80f4..539248957b 100644
--- a/test/mkmf/base.rb
+++ b/test/mkmf/base.rb
@@ -11,6 +11,9 @@ $INCFLAGS << " -I."
$extout_prefix = "$(extout)$(target_prefix)/"
class TestMkmf < Test::Unit::TestCase
+end
+
+module TestMkmf::Base
MKMFLOG = proc {File.read("mkmf.log") rescue ""}
class Capture
@@ -49,9 +52,7 @@ class TestMkmf < Test::Unit::TestCase
@buffer << s if @out
end
end
-end
-module TestMkmf::Base
attr_reader :stdout
def mkmflog(msg)
@@ -86,7 +87,7 @@ module TestMkmf::Base
@tmpdir = Dir.mktmpdir
@curdir = Dir.pwd
@mkmfobj = Object.new
- @stdout = TestMkmf::Capture.new
+ @stdout = Capture.new
Dir.chdir(@tmpdir)
@quiet, Logging.quiet = Logging.quiet, true
init_mkmf