1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2012-04-23 13:09:48 +00:00
parent ee8c98e5cc
commit 146aff91c4
2 changed files with 7 additions and 1 deletions

View file

@ -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):

View file

@ -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