skip hanging-up tests on macOS
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b8b668806
commit
ca5c3f1efc
@ -177,7 +177,7 @@ describe 'BasicSocket#send' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is_not :windows do
|
platform_is_not :darwin, :windows do
|
||||||
describe 'using a connected TCP socket' do
|
describe 'using a connected TCP socket' do
|
||||||
before do
|
before do
|
||||||
@client = Socket.new(family, :STREAM)
|
@client = Socket.new(family, :STREAM)
|
||||||
|
@ -12,7 +12,7 @@ describe 'Socket#accept' do
|
|||||||
@server.close unless @server.closed?
|
@server.close unless @server.closed?
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is_not :freebsd, :windows do # hangs
|
platform_is_not :darwin, :freebsd, :windows do # hangs
|
||||||
describe 'using an unbound socket' do
|
describe 'using an unbound socket' do
|
||||||
it 'raises Errno::EINVAL' do
|
it 'raises Errno::EINVAL' do
|
||||||
lambda { @server.accept }.should raise_error(Errno::EINVAL)
|
lambda { @server.accept }.should raise_error(Errno::EINVAL)
|
||||||
|
@ -37,6 +37,7 @@ describe 'Socket#connect' do
|
|||||||
}.should raise_error(Errno::EISCONN)
|
}.should raise_error(Errno::EISCONN)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
platform_is_not :darwin do
|
||||||
it 'raises Errno::ECONNREFUSED or Errno::ETIMEDOUT when the connection failed' do
|
it 'raises Errno::ECONNREFUSED or Errno::ETIMEDOUT when the connection failed' do
|
||||||
begin
|
begin
|
||||||
@client.connect(@server.getsockname)
|
@client.connect(@server.getsockname)
|
||||||
@ -46,3 +47,4 @@ describe 'Socket#connect' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
@ -12,7 +12,7 @@ describe 'Socket#sysaccept' do
|
|||||||
@server.close
|
@server.close
|
||||||
end
|
end
|
||||||
|
|
||||||
platform_is_not :freebsd, :windows do # hangs
|
platform_is_not :freebsd, :windows, :darwin do # hangs
|
||||||
describe 'using an unbound socket' do
|
describe 'using an unbound socket' do
|
||||||
it 'raises Errno::EINVAL' do
|
it 'raises Errno::EINVAL' do
|
||||||
lambda { @server.sysaccept }.should raise_error(Errno::EINVAL)
|
lambda { @server.sysaccept }.should raise_error(Errno::EINVAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user