ruby-changes:58051
From: Koichi <ko1@a...>
Date: Mon, 30 Sep 2019 18:00:30 +0900 (JST)
Subject: [ruby-changes:58051] 945560008f (master): Revert "introduce debug check."
https://git.ruby-lang.org/ruby.git/commit/?id=945560008f From 945560008ffbb768df3a6e9f0814f2d117993a5e Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Mon, 30 Sep 2019 17:59:10 +0900 Subject: Revert "introduce debug check." This reverts commit c3b84f2de83a27acc638f99743bfa2c44bac621c. Backtrace shows it is before running tests and debug check was nonsense. diff --git a/tool/lib/leakchecker.rb b/tool/lib/leakchecker.rb index d463eb2..af9200b 100644 --- a/tool/lib/leakchecker.rb +++ b/tool/lib/leakchecker.rb @@ -18,21 +18,10 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/tool/lib/leakchecker.rb#L18 check_encodings(test_name), check_safe(test_name), check_verbose(test_name), - check_require_arity(test_name), ] GC.start if leaks.any? end - # to debug - def check_require_arity test_name - begin - require 'enumerator' # to check require's arity - rescue ArgumentError => e - STDERR.puts "#{e.message} on #{test_name}" - raise - end - end - def check_safe test_name puts "#{test_name}: $SAFE == #{$SAFE}" unless $SAFE == 0 end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/