diff --git a/ChangeLog b/ChangeLog index 1ad293bd0d..19d1b06deb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Oct 4 16:05:49 2014 Rei Odaira + + * 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 * 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 7e82e6cb97..866c83906e 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