diff options
-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), |