diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-21 16:19:06 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-21 16:19:06 +0000 |
commit | 0917a3dea28f92d9ec7533faa1b83d690653c152 (patch) | |
tree | 16ab8f791c97da788dc24ecf4f06d79815e61495 /test/socket | |
parent | 83cb00042f99c64300190d5b977f8e47952f0fd7 (diff) | |
download | ruby-0917a3dea28f92d9ec7533faa1b83d690653c152.tar.gz |
* 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
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_socket.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index f9cbdbd3c8..3fdb2fa7be 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -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| |