mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
93156392dd
commit
28b3d20ba9
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue