diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-16 20:29:06 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-16 20:29:06 +0900 |
| commit | 01459f1644602ab7dfede46b07a56fc93ffa0165 (patch) | |
| tree | ead447fe6eff8fb307782834899f6ff272b618d9 | |
| parent | 9f02680015d21013fa83587d8c912d2af621bb57 (diff) | |
Set `CHECK_LEAKS` in spec/default.mspec
Because of `.NOEXPORT:` in template/Makefile.in, variables in
common.mk will not be exported.
| -rw-r--r-- | common.mk | 3 | ||||
| -rw-r--r-- | spec/default.mspec | 4 |
2 files changed, 4 insertions, 3 deletions
@@ -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 diff --git a/spec/default.mspec b/spec/default.mspec index e2ad19e117..3b5024f0c6 100644 --- a/spec/default.mspec +++ b/spec/default.mspec @@ -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' |
