mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -1,3 +1,9 @@
|
|||
Sun Nov 22 00:17:22 2015 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* 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]
|
||||
|
||||
Sat Nov 21 18:57:28 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (need_argument): move frozen-string-literal-debug option
|
||||
|
|
|
@ -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…
Reference in a new issue