From bebb4e9deab9723208cccaec5d3124324bbf80b8 Mon Sep 17 00:00:00 2001 From: odaira Date: Sat, 4 Oct 2014 07:11:54 +0000 Subject: 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 --- ChangeLog | 6 ++++++ test/socket/test_unix.rb | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3