[前][次][番号順一覧][スレッド一覧]

ruby-changes:51044

From: nobu <ko1@a...>
Date: Tue, 24 Apr 2018 08:46:34 +0900 (JST)
Subject: [ruby-changes:51044] nobu:r63251 (trunk): rescue Errno::EPROTOTYPE

nobu	2018-04-24 08:46:26 +0900 (Tue, 24 Apr 2018)

  New Revision: 63251

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63251

  Log:
    rescue Errno::EPROTOTYPE
    
    * test/webrick/test_httpserver.rb (test_gigantic_request_header):
      Errno::EPROTOTYPE is sometimes raised on Mac OS X 10.10.

  Modified files:
    trunk/test/webrick/test_httpserver.rb
Index: test/webrick/test_httpserver.rb
===================================================================
--- test/webrick/test_httpserver.rb	(revision 63250)
+++ test/webrick/test_httpserver.rb	(revision 63251)
@@ -452,7 +452,7 @@ class TestWEBrickHTTPServer < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/webrick/test_httpserver.rb#L452
       TCPSocket.open(addr, port) do |c|
         c.write("GET / HTTP/1.0\r\n")
         junk = -"X-Junk: #{' ' * 1024}\r\n"
-        assert_raise(Errno::ECONNRESET, Errno::EPIPE) do
+        assert_raise(Errno::ECONNRESET, Errno::EPIPE, Errno::EPROTOTYPE) do
           loop { c.write(junk) }
         end
       end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]