diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-03-04 11:25:43 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-03-04 11:25:43 +0900 |
commit | cf52f37caec8cd1955af4ccb32933828aa330854 (patch) | |
tree | b5721615131dbf4d856727b3994166afc39c38d8 | |
parent | 14dd377e51408ef07e03c27f95ff6b0e186df022 (diff) | |
download | ruby-cf52f37caec8cd1955af4ccb32933828aa330854.tar.gz |
Narrow the check target.
Call GC.verify_internal_consistency only for Gem related test
on i386-solaris.
-rw-r--r-- | tool/lib/leakchecker.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/lib/leakchecker.rb b/tool/lib/leakchecker.rb index bcc0e42256..03eb5391c4 100644 --- a/tool/lib/leakchecker.rb +++ b/tool/lib/leakchecker.rb @@ -11,7 +11,10 @@ class LeakChecker 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), |