summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-03-04 11:25:43 +0900
committerKoichi Sasada <ko1@atdot.net>2020-03-04 11:25:43 +0900
commitcf52f37caec8cd1955af4ccb32933828aa330854 (patch)
treeb5721615131dbf4d856727b3994166afc39c38d8
parent14dd377e51408ef07e03c27f95ff6b0e186df022 (diff)
Narrow the check target.
Call GC.verify_internal_consistency only for Gem related test on i386-solaris.
-rw-r--r--tool/lib/leakchecker.rb5
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),