diff options
| -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' |
