* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):

catch IOError when server socket was closed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-02-13 00:56:40 +00:00
parent 00e84afa33
commit c84e529219
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Feb 13 09:56:32 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
catch IOError when server socket was closed.
Sun Feb 13 07:39:51 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* enum.c (enum_inject): typo fixed. a patch from Gaku Ueda in

View File

@ -18,8 +18,13 @@ module WEBrick_Testing
:StartCallback => proc { @__started = true }
}.update(config))
yield @__server
@__server.start
@__started = false
begin
@__server.start
rescue IOError => e
assert_match(/closed/, e.message)
ensure
@__started = false
end
}
Timeout.timeout(5) {