зеркало из https://github.com/github/ruby.git
* test/socket/test_socket.rb: unix socket is required by test case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
93156392dd
Коммит
28b3d20ba9
|
@ -1,3 +1,7 @@
|
|||
Tue Feb 18 23:18:41 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/socket/test_socket.rb: unix socket is required by test case.
|
||||
|
||||
Tue Feb 18 20:48:38 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/socket/test_addrinfo.rb: remove unused variables.
|
||||
|
|
|
@ -441,6 +441,7 @@ class TestSocket_UNIXSocket < Test::Unit::TestCase
|
|||
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::TestCase
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче