From bca963220a97486ce50476013838d4339abd077c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Feb 2015 04:50:18 +0000 Subject: mkmf/base.rb: fix constant scope * test/mkmf/base.rb (TestMkmf::Base): fix constant scope for r49482. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/mkmf/base.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3