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

ruby-changes:32958

From: hsbt <ko1@a...>
Date: Tue, 18 Feb 2014 23:23:34 +0900 (JST)
Subject: [ruby-changes:32958] hsbt:r45037 (trunk): * test/socket/test_socket.rb: unix socket is required by test case.

hsbt	2014-02-18 23:23:30 +0900 (Tue, 18 Feb 2014)

  New Revision: 45037

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

  Log:
    * test/socket/test_socket.rb: unix socket is required by test case.

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_unix.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45036)
+++ ChangeLog	(revision 45037)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Feb 18 23:18:41 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/socket/test_socket.rb: unix socket is required by test case.
+
 Tue Feb 18 20:48:38 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* test/socket/test_addrinfo.rb: remove unused variables.
Index: test/socket/test_unix.rb
===================================================================
--- test/socket/test_unix.rb	(revision 45036)
+++ test/socket/test_unix.rb	(revision 45037)
@@ -441,6 +441,7 @@ class TestSocket_UNIXSocket < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/socket/test_unix.rb#L441
     Dir.mktmpdir {|d|
       sockpath = "#{d}/sock"
       serv = Socket.unix_server_socket(sockpath)
+      Socket.unix(sockpath)
       s, = serv.accept
       cred = s.getsockopt(:SOCKET, :PEERCRED)
       inspect = cred.inspect
@@ -456,6 +457,7 @@ class TestSocket_UNIXSocket < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/socket/test_unix.rb#L457
     Dir.mktmpdir {|d|
       sockpath = "#{d}/sock"
       serv = Socket.unix_server_socket(sockpath)
+      Socket.unix(sockpath)
       s, = serv.accept
       cred = s.getsockopt(0, Socket::LOCAL_PEERCRED)
       inspect = cred.inspect

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

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