diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-05 04:50:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-05 04:50:18 +0000 |
commit | bca963220a97486ce50476013838d4339abd077c (patch) | |
tree | 52ea292964b1b11e312d91a30fcdcca048169296 /test | |
parent | a932a1b83de5e647e1035369dea5cd2b0b9c2876 (diff) | |
download | ruby-bca963220a97486ce50476013838d4339abd077c.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/mkmf/base.rb | 7 |
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 |