summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog6
-rw-r--r--test/socket/test_unix.rb4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ad293bd0db..19d1b06debc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 4 16:05:49 2014 Rei Odaira <Rei.Odaira@gmail.com>
+
+ * 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.
+
Sat Oct 4 09:12:03 2014 Zachary Scott <e@zzak.io>
* ext/win32ole/sample/example*.rb: Add wait input to quit for examples
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb
index 7e82e6cb977..866c83906ec 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