* test/openssl/test_ssl.rb (start_server): shutdown TCPServer before
close. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
895c7cb3c4
commit
3ac2c3472a
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jun 30 23:15:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* test/openssl/test_ssl.rb (start_server): shutdown TCPServer before
|
||||||
|
close.
|
||||||
|
|
||||||
Mon Jun 30 23:01:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Jun 30 23:01:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (RUBY_H_INCLUDES): common headers which are included with
|
* common.mk (RUBY_H_INCLUDES): common headers which are included with
|
||||||
|
@ -128,7 +128,8 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
|||||||
|
|
||||||
block.call(server, port.to_i)
|
block.call(server, port.to_i)
|
||||||
ensure
|
ensure
|
||||||
tcps.close if (tcps)
|
tcps.shutdown if (tcps)
|
||||||
|
begin
|
||||||
if (server)
|
if (server)
|
||||||
server.join(5)
|
server.join(5)
|
||||||
if server.alive?
|
if server.alive?
|
||||||
@ -137,6 +138,10 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
|||||||
flunk("TCPServer was closed and SSLServer is still alive") unless $!
|
flunk("TCPServer was closed and SSLServer is still alive") unless $!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
rescue Errno::EINVAL, Errno::EBADF
|
||||||
|
ensure
|
||||||
|
tcps.close if (tcps)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user