зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
a932a1b83d
Коммит
bca963220a
|
@ -11,6 +11,9 @@ $INCFLAGS << " -I."
|
||||||
$extout_prefix = "$(extout)$(target_prefix)/"
|
$extout_prefix = "$(extout)$(target_prefix)/"
|
||||||
|
|
||||||
class TestMkmf < Test::Unit::TestCase
|
class TestMkmf < Test::Unit::TestCase
|
||||||
|
end
|
||||||
|
|
||||||
|
module TestMkmf::Base
|
||||||
MKMFLOG = proc {File.read("mkmf.log") rescue ""}
|
MKMFLOG = proc {File.read("mkmf.log") rescue ""}
|
||||||
|
|
||||||
class Capture
|
class Capture
|
||||||
|
@ -49,9 +52,7 @@ class TestMkmf < Test::Unit::TestCase
|
||||||
@buffer << s if @out
|
@buffer << s if @out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
module TestMkmf::Base
|
|
||||||
attr_reader :stdout
|
attr_reader :stdout
|
||||||
|
|
||||||
def mkmflog(msg)
|
def mkmflog(msg)
|
||||||
|
@ -86,7 +87,7 @@ module TestMkmf::Base
|
||||||
@tmpdir = Dir.mktmpdir
|
@tmpdir = Dir.mktmpdir
|
||||||
@curdir = Dir.pwd
|
@curdir = Dir.pwd
|
||||||
@mkmfobj = Object.new
|
@mkmfobj = Object.new
|
||||||
@stdout = TestMkmf::Capture.new
|
@stdout = Capture.new
|
||||||
Dir.chdir(@tmpdir)
|
Dir.chdir(@tmpdir)
|
||||||
@quiet, Logging.quiet = Logging.quiet, true
|
@quiet, Logging.quiet = Logging.quiet, true
|
||||||
init_mkmf
|
init_mkmf
|
||||||
|
|
Загрузка…
Ссылка в новой задаче