mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									b4e9ffbdc8
								
							
						
					
					
						commit
						bebb4e9dea
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 odaira
						odaira