summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-18 14:23:30 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-18 14:23:30 +0000
commit28b3d20ba9f1092cd340231bdb5de37a3aa2fdab (patch)
tree1119ccbacb4c4df38db5809b5880af477286914f /test/socket
parent93156392dd4a80e1ee61a52c6a227845043a8026 (diff)
* 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
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_unix.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb
index 8b6b705..ada614c 100644
--- a/test/socket/test_unix.rb
+++ b/test/socket/test_unix.rb
@@ -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