ruby-changes:60278
From: Koichi <ko1@a...>
Date: Wed, 4 Mar 2020 11:26:59 +0900 (JST)
Subject: [ruby-changes:60278] cf52f37cae (master): Narrow the check target.
https://git.ruby-lang.org/ruby.git/commit/?id=cf52f37cae From cf52f37caec8cd1955af4ccb32933828aa330854 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Wed, 4 Mar 2020 11:25:43 +0900 Subject: Narrow the check target. Call GC.verify_internal_consistency only for Gem related test on i386-solaris. diff --git a/tool/lib/leakchecker.rb b/tool/lib/leakchecker.rb index bcc0e42..03eb539 100644 --- a/tool/lib/leakchecker.rb +++ b/tool/lib/leakchecker.rb @@ -11,7 +11,10 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/tool/lib/leakchecker.rb#L11 end def check(test_name) - GC.verify_internal_consistency if /i386-solaris/ =~ RUBY_PLATFORM + if /i386-solaris/ =~ RUBY_PLATFORM && /TestGem/ =~ test_name + GC.verify_internal_consistency + end + leaks = [ check_fd_leak(test_name), check_thread_leak(test_name), -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/