diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-09 03:32:51 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-09 03:32:51 +0000 |
commit | ab8791d7d27c0b266506785ca11587d627e5465a (patch) | |
tree | ee89ae73af7ae351bf365adcfd4bebae8fc83e1f /spec/ruby/library/socket/basicsocket | |
parent | 52102f6ff50eebf8c16667c9b49cef579d2057c1 (diff) |
spec/ruby/library/socket/*: more FreeBSD fixes
FreeBSD portability notes:
Loopback connections are not instantaneous (unlike Linux), so
non-blocking read-after-write MUST check for readability via
IO.select or IO#wait_readable before attempting non-blocking
recv/read operations.
IPv6 seems favored, so we'll get "::" instead of "0.0.0.0"
Some constants are different or obsolete, so that should be
self-explanatory.
There are still other failures I or somebody else needs to get
to when we have time and feel like dealing with spec DSL:
http://rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/recent.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/socket/basicsocket')
-rw-r--r-- | spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb b/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb index 698b9e7ba5..30f74a2164 100644 --- a/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb +++ b/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb @@ -156,6 +156,7 @@ describe 'BasicSocket#recvmsg_nonblock' do describe 'the returned Array' do before do + platform_is(:freebsd) { IO.select([@socket]) } @array = @socket.recvmsg_nonblock end |