From 146aff91c43bf19f753a928410f9e55b2a17868f Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 23 Apr 2012 13:09:48 +0000 Subject: * 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 --- ChangeLog | 6 ++++++ test/socket/test_unix.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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 * 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 -- cgit v1.2.3