mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
spec/ruby/library/socket/*: fix hanging on FreeBSD 11.1
There are still other test failures which need fixing on FreeBSD. Keep an eye on: http://rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/recent.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
29ccaf6ea9
commit
3b8b668806
3 changed files with 6 additions and 2 deletions
|
@ -200,6 +200,10 @@ describe 'BasicSocket#send' do
|
|||
|
||||
@client.send('a', Socket::MSG_OOB).should == 1
|
||||
|
||||
platform_is :freebsd do # recv hangs otherwise
|
||||
@client.close
|
||||
end
|
||||
|
||||
socket, _ = @server.accept
|
||||
begin
|
||||
socket.recv(1, Socket::MSG_OOB).should == 'a'
|
||||
|
|
|
@ -12,7 +12,7 @@ describe 'Socket#accept' do
|
|||
@server.close unless @server.closed?
|
||||
end
|
||||
|
||||
platform_is_not :windows do # hangs
|
||||
platform_is_not :freebsd, :windows do # hangs
|
||||
describe 'using an unbound socket' do
|
||||
it 'raises Errno::EINVAL' do
|
||||
lambda { @server.accept }.should raise_error(Errno::EINVAL)
|
||||
|
|
|
@ -12,7 +12,7 @@ describe 'Socket#sysaccept' do
|
|||
@server.close
|
||||
end
|
||||
|
||||
platform_is_not :windows do # hangs
|
||||
platform_is_not :freebsd, :windows do # hangs
|
||||
describe 'using an unbound socket' do
|
||||
it 'raises Errno::EINVAL' do
|
||||
lambda { @server.sysaccept }.should raise_error(Errno::EINVAL)
|
||||
|
|
Loading…
Add table
Reference in a new issue