Skip to content

Commit

Permalink
Set CHECK_LEAKS in spec/default.mspec
Browse files Browse the repository at this point in the history
Because of `.NOEXPORT:` in template/Makefile.in, variables in
common.mk will not be exported.
  • Loading branch information
nobu committed Jan 16, 2024
1 parent 9f02680 commit 01459f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common.mk
Expand Up @@ -43,9 +43,6 @@ RUBYLIB = $(PATH_SEPARATOR)
RUBYOPT = -
RUN_OPTS = --disable-gems

# Enabld leakcheckers by ruby/mspec
CHECK_LEAKS = true

# GITPULLOPTIONS = --no-tags

PRISM_SRCDIR = $(srcdir)/prism
Expand Down
4 changes: 4 additions & 0 deletions spec/default.mspec
Expand Up @@ -3,6 +3,10 @@ $VERBOSE = false
if (opt = ENV["RUBYOPT"]) and (opt = opt.dup).sub!(/(?:\A|\s)-w(?=\z|\s)/, '')
ENV["RUBYOPT"] = opt
end

# Enabld leakcheckers by ruby/mspec
ENV["CHECK_LEAKS"] ||= "true"

require "./rbconfig" unless defined?(RbConfig)
require_relative "../tool/test-coverage" if ENV.key?("COVERAGE")
load File.dirname(__FILE__) + '/ruby/default.mspec'
Expand Down

0 comments on commit 01459f1

Please sign in to comment.