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

ruby-changes:41181

From: normal <ko1@a...>
Date: Wed, 23 Dec 2015 03:09:01 +0900 (JST)
Subject: [ruby-changes:41181] normal:r53253 (trunk): test/socket/test_basicsocket.rb: attempt fix for

normal	2015-12-23 03:08:49 +0900 (Wed, 23 Dec 2015)

  New Revision: 53253

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

  Log:
    test/socket/test_basicsocket.rb: attempt fix for [ruby-cvs:60402]
    
    I'm not sure how fstat on fd=-1 can succeed on some systems...

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_basicsocket.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53252)
+++ ChangeLog	(revision 53253)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 23 03:05:12 2015  Eric Wong  <e@8...>
+
+	* test/socket/test_basicsocket.rb: attempt fix for [ruby-cvs:60402]
+
 Wed Dec 23 02:59:26 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (__STDC_WANT_LIB_EXT1__): necessary to use memset_s
Index: test/socket/test_basicsocket.rb
===================================================================
--- test/socket/test_basicsocket.rb	(revision 53252)
+++ test/socket/test_basicsocket.rb	(revision 53253)
@@ -134,7 +134,8 @@ class TestSocket_BasicSocket < Test::Uni https://github.com/ruby/ruby/blob/trunk/test/socket/test_basicsocket.rb#L134
   end
 
   def test_for_fd
-    assert_raise(Errno::EBADF, '[ruby-core:72418] [Bug #11854]') do
+    assert_raise(ArgumentError, # [ruby-cvs:60402]
+                 Errno::EBADF, '[ruby-core:72418] [Bug #11854]') do
       BasicSocket.for_fd(-1)
     end
     inet_stream do |sock|

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

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