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

ruby-changes:22372

From: kazu <ko1@a...>
Date: Fri, 3 Feb 2012 00:55:18 +0900 (JST)
Subject: [ruby-changes:22372] kazu:r34421 (trunk): * test/net/http/test_https_proxy.rb

kazu	2012-02-03 00:55:07 +0900 (Fri, 03 Feb 2012)

  New Revision: 34421

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34421

  Log:
    * test/net/http/test_https_proxy.rb
      (HTTPSProxyTest#test_https_proxy_authentication):
      add workaround to avoid to hang up without openssl.
      see #5786
    
    * test/resolv/test_dns.rb (TestResolvDNS#test_query_ipv4_address):
      ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/net/http/test_https_proxy.rb
    trunk/test/resolv/test_dns.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34420)
+++ ChangeLog	(revision 34421)
@@ -1,3 +1,13 @@
+Thu Feb  2 22:28:13 2012  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* test/net/http/test_https_proxy.rb
+	  (HTTPSProxyTest#test_https_proxy_authentication):
+	  add workaround to avoid to hang up without openssl.
+	  see #5786
+
+	* test/resolv/test_dns.rb (TestResolvDNS#test_query_ipv4_address):
+	  ditto.
+
 Thu Feb  2 21:48:18 2012  Kouhei Sutou  <kou@c...>
 
 	* lib/rexml/parsers/baseparser.rb: use meaningful names.
Index: test/resolv/test_dns.rb
===================================================================
--- test/resolv/test_dns.rb	(revision 34420)
+++ test/resolv/test_dns.rb	(revision 34421)
@@ -23,6 +23,12 @@
   end
 
   def test_query_ipv4_address
+    begin
+      OpenSSL
+    rescue LoadError
+      skip 'autoload problem. see [ruby-dev:45021][Bug #5786]'
+    end if defined?(OpenSSL)
+
     with_udp('127.0.0.1', 0) {|u|
       _, server_port, _, server_address = u.addr
       begin
Index: test/net/http/test_https_proxy.rb
===================================================================
--- test/net/http/test_https_proxy.rb	(revision 34420)
+++ test/net/http/test_https_proxy.rb	(revision 34421)
@@ -6,6 +6,12 @@
 
 class HTTPSProxyTest < Test::Unit::TestCase
   def test_https_proxy_authentication
+    begin
+      OpenSSL
+    rescue LoadError
+      skip 'autoload problem. see [ruby-dev:45021][Bug #5786]'
+    end
+
     t = nil
     TCPServer.open("127.0.0.1", 0) {|serv|
       _, port, _, _ = serv.addr

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

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