summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authorodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-04 07:11:54 +0000
committerodaira <odaira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-04 07:11:54 +0000
commitbebb4e9deab9723208cccaec5d3124324bbf80b8 (patch)
treee80290f2a71f83ead734772e0ab074da0767c854 /test/socket
parentb4e9ffbdc8cf4d448e86cf6e9c4a2ce8dbf52e29 (diff)
test/socket/test_unix.rb (TestSocket_UNIXSocket#test_too_long_path): sockaddr_un.sun_path in AIX is defined as char[1024], so "a" * 300 is not too long. "a" * 3000 would be enough.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_unix.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb
index 7e82e6c..866c839 100644
--- a/test/socket/test_unix.rb
+++ b/test/socket/test_unix.rb
@@ -356,8 +356,8 @@ class TestSocket_UNIXSocket < Test::Unit::TestCase
end
def test_too_long_path
- assert_raise(ArgumentError) { Socket.sockaddr_un("a" * 300) }
- assert_raise(ArgumentError) { UNIXServer.new("a" * 300) }
+ assert_raise(ArgumentError) { Socket.sockaddr_un("a" * 3000) }
+ assert_raise(ArgumentError) { UNIXServer.new("a" * 3000) }
end
def test_abstract_namespace