ruby-changes:59876
From: Kazuhiro <ko1@a...>
Date: Wed, 29 Jan 2020 15:00:28 +0900 (JST)
Subject: [ruby-changes:59876] d142b37bdc (master): Add more debug print
https://git.ruby-lang.org/ruby.git/commit/?id=d142b37bdc From d142b37bdc05986f5caec8981550e97cfb7b1ce0 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 29 Jan 2020 14:58:43 +0900 Subject: Add more debug print https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20200129T022510Z.fail.html.gz diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index 03692c2..6c6a657 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -489,7 +489,16 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L489 server: @@h[:server].inspect, t: Process.clock_gettime(Process::CLOCK_MONOTONIC), } - super + #super + s = Socket.tcp(host, port, :connect_timeout => @open_timeout) + @@h[:in_tcp_socket_2] = { + s: s.inspect, + local_address: s.local_address, + remote_address: s.remote_address, + t: Process.clock_gettime(Process::CLOCK_MONOTONIC), + } + s.setsockopt(:SOL_SOCKET, :SO_KEEPALIVE, true) + s end end start_server do @@ -523,7 +532,7 @@ class IMAPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/imap/test_imap.rb#L532 raise Errno::EINVAL end end - rescue Errno::EINVAL => e # for debug on OpenCSW + rescue SystemCallError => e # for debug on OpenCSW h[:in_rescue] = { e: e, server_addr: server_addr, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/