summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:09:48 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-23 13:09:48 +0000
commit146aff91c43bf19f753a928410f9e55b2a17868f (patch)
treed968eb6c7d9f35edcdd46c9e463d11c9d30c7239 /test/socket
parentee8c98e5ccdc6a421d52652ae560f2efcb850749 (diff)
* test/socket/test_unix.rb (bound_unix_socket): make temporary
filename shorter for less possibility of Unix socket path over 107 bytes when TMPDIR has long path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_unix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb
index a9918b1..a457ee5 100644
--- a/test/socket/test_unix.rb
+++ b/test/socket/test_unix.rb
@@ -244,7 +244,7 @@ class TestSocket_UNIXSocket < Test::Unit::TestCase
end
def bound_unix_socket(klass)
- tmpfile = Tempfile.new("testrubysock")
+ tmpfile = Tempfile.new("s")
path = tmpfile.path
tmpfile.close(true)
yield klass.new(path), path