mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
Set CHECK_LEAKS
in spec/default.mspec
Because of `.NOEXPORT:` in template/Makefile.in, variables in common.mk will not be exported.
This commit is contained in:
parent
9f02680015
commit
01459f1644
2 changed files with 4 additions and 3 deletions
|
@ -43,9 +43,6 @@ RUBYLIB = $(PATH_SEPARATOR)
|
||||||
RUBYOPT = -
|
RUBYOPT = -
|
||||||
RUN_OPTS = --disable-gems
|
RUN_OPTS = --disable-gems
|
||||||
|
|
||||||
# Enabld leakcheckers by ruby/mspec
|
|
||||||
CHECK_LEAKS = true
|
|
||||||
|
|
||||||
# GITPULLOPTIONS = --no-tags
|
# GITPULLOPTIONS = --no-tags
|
||||||
|
|
||||||
PRISM_SRCDIR = $(srcdir)/prism
|
PRISM_SRCDIR = $(srcdir)/prism
|
||||||
|
|
|
@ -3,6 +3,10 @@ $VERBOSE = false
|
||||||
if (opt = ENV["RUBYOPT"]) and (opt = opt.dup).sub!(/(?:\A|\s)-w(?=\z|\s)/, '')
|
if (opt = ENV["RUBYOPT"]) and (opt = opt.dup).sub!(/(?:\A|\s)-w(?=\z|\s)/, '')
|
||||||
ENV["RUBYOPT"] = opt
|
ENV["RUBYOPT"] = opt
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Enabld leakcheckers by ruby/mspec
|
||||||
|
ENV["CHECK_LEAKS"] ||= "true"
|
||||||
|
|
||||||
require "./rbconfig" unless defined?(RbConfig)
|
require "./rbconfig" unless defined?(RbConfig)
|
||||||
require_relative "../tool/test-coverage" if ENV.key?("COVERAGE")
|
require_relative "../tool/test-coverage" if ENV.key?("COVERAGE")
|
||||||
load File.dirname(__FILE__) + '/ruby/default.mspec'
|
load File.dirname(__FILE__) + '/ruby/default.mspec'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue