aboutsummaryrefslogtreecommitdiffstats
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
parentee8c98e5ccdc6a421d52652ae560f2efcb850749 (diff)
downloadruby-146aff91c43bf19f753a928410f9e55b2a17868f.tar.gz
* 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
-rw-r--r--ChangeLog6
-rw-r--r--test/socket/test_unix.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c7553d27a6..e93970eba4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Apr 23 22:07:00 2012 Tanaka Akira <akr@fsij.org>
+
+ * 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.
+
Mon Apr 23 20:35:49 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (szInternalCmds, internal_match, internal_cmd_match):
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb
index a9918b108b..a457ee586b 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