From 962c302a1ae8e50738c36adb61c8ec9c9fa5a49b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 27 May 2020 02:07:38 +0900 Subject: test/drb/test_drbssl.rb: skip LeakChecker as openssl keeps /dev/random and /dev/urandom intentionally. OpenSSL::PKey::RSA.new opens the two random generators and keeps the file descriptors. https://github.com/openssl/openssl/blob/93f99b681ab5a1cf7062053323e09b0cad5ff854/crypto/rand/rand_unix.c#L674 They are detected by the LeakChecker as fd leak, but it is intentional. http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20200526T160005Z.log.html.gz ``` [ 597/20199] DRbTests::TestDRbSSLAry#test_01 = 0.29 s Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 8 # Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 9 # ``` --- test/drb/test_drbssl.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb index 8ab010e1c4..1763b38448 100644 --- a/test/drb/test_drbssl.rb +++ b/test/drb/test_drbssl.rb @@ -59,6 +59,7 @@ end class TestDRbSSLAry < Test::Unit::TestCase include DRbAry def setup + LeakChecker.skip if defined?(LeakChecker) @drb_service = DRbSSLService.new super setup_service 'ut_array_drbssl.rb' -- cgit v1.2.3