mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* test/socket/test_socket.rb (test/socket/test_socket.rb): skip the test when Socket::SO_TIMESTAMP is not defined.
Fix error on Solaris 10. [Bug #11728] [ruby-dev:49377] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
83cb00042f
commit
0917a3dea2
2 changed files with 7 additions and 1 deletions
|
@ -453,7 +453,7 @@ class TestSocket < Test::Unit::TestCase
|
|||
|
||||
def test_timestamp
|
||||
return if /linux|freebsd|netbsd|openbsd|solaris|darwin/ !~ RUBY_PLATFORM
|
||||
return if !defined?(Socket::AncillaryData)
|
||||
return if !defined?(Socket::AncillaryData) || !defined?(Socket::SO_TIMESTAMP)
|
||||
t1 = Time.now.strftime("%Y-%m-%d")
|
||||
stamp = nil
|
||||
Addrinfo.udp("127.0.0.1", 0).bind {|s1|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue