[前][次][番号順一覧][スレッド一覧]

ruby-changes:35703

From: odaira <ko1@a...>
Date: Sat, 4 Oct 2014 16:12:02 +0900 (JST)
Subject: [ruby-changes:35703] odaira:r47785 (trunk): 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.

odaira	2014-10-04 16:11:54 +0900 (Sat, 04 Oct 2014)

  New Revision: 47785

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47785

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_unix.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47784)
+++ ChangeLog	(revision 47785)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Oct  4 16:05:49 2014  Rei Odaira  <Rei.Odaira@g...>
+
+	* 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@z...>
 
 	* ext/win32ole/sample/example*.rb: Add wait input to quit for examples
Index: test/socket/test_unix.rb
===================================================================
--- test/socket/test_unix.rb	(revision 47784)
+++ test/socket/test_unix.rb	(revision 47785)
@@ -356,8 +356,8 @@ class TestSocket_UNIXSocket < Test::Unit https://github.com/ruby/ruby/blob/trunk/test/socket/test_unix.rb#L356
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]