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:
parent
14dd377e51
commit
cf52f37cae
1 changed files with 4 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue