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/udpsocket | |
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/udpsocket')
-rw-r--r-- | spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb b/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb index 48b7360035..8c9d598676 100644 --- a/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb +++ b/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb @@ -40,6 +40,8 @@ describe 'UDPSocket#recvfrom_nonblock' do describe 'with data available' do before do @client.write('hello') + + platform_is(:freebsd) { IO.select([@server]) } end it 'returns an Array containing the data and an Array' do |