summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-10 11:52:29 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-10 11:52:29 +0000
commit6f636adad0b0e8c8aabf9739673df7c48b446099 (patch)
treec31da28cc2f67c2a719b5dbd1d4362d4b17aea55
parent0ad3abe1f10d5e8134c1956d84c432e2b0fc3304 (diff)
Use shorter filenames to avoid sockaddr_un size limitation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_file_exhaustive.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index e1881b6..70ddf32 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -54,7 +54,7 @@ class TestFileExhaustive < Test::Unit::TestCase
end
def make_tmp_filename(prefix)
- "#{@dir}/#{prefix}#{File.basename(__FILE__)}.#{$$}.test"
+ "#{@dir}/#{prefix}.#{$$}.test"
end
def test_path
@@ -173,7 +173,7 @@ class TestFileExhaustive < Test::Unit::TestCase
assert_file.not_socket?(@file)
assert_file.not_socket?(@nofile)
if defined? UNIXServer
- socket = make_tmp_filename("socket")
+ socket = make_tmp_filename("s")
UNIXServer.open(socket) {|sock|
assert_file.socket?(socket)
}
@@ -1003,7 +1003,7 @@ class TestFileExhaustive < Test::Unit::TestCase
make_fifo fifo
end
if defined? UNIXServer
- socket = make_tmp_filename("socket")
+ socket = make_tmp_filename("s")
UNIXServer.open(socket).close
end
[@dir, @file, @zerofile, @symlinkfile, @hardlinkfile, fifo, socket].compact.each do |f|
@@ -1129,7 +1129,7 @@ class TestFileExhaustive < Test::Unit::TestCase
assert(!(File::Stat.new(@dir).socket?))
assert(!(File::Stat.new(@file).socket?))
if defined? UNIXServer
- socket = make_tmp_filename("socket")
+ socket = make_tmp_filename("s")
UNIXServer.open(socket) {|sock|
assert(File::Stat.new(socket).socket?)
}