summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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