1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Narrow the check target.

Call GC.verify_internal_consistency only for Gem related test
on i386-solaris.
This commit is contained in:
Koichi Sasada 2020-03-04 11:25:43 +09:00
parent 14dd377e51
commit cf52f37cae

View file

@ -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),