mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/xmlrpc/webrick_testing.rb: join webrick server thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0481de5db5
commit
ba3bb2895f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Dec 15 23:50:31 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* test/xmlrpc/webrick_testing.rb: join webrick server thread.
|
||||||
|
|
||||||
Sat Dec 15 22:27:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Dec 15 22:27:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (BUILTIN_ENCS): splitted command line instead of
|
* configure.in (BUILTIN_ENCS): splitted command line instead of
|
||||||
|
|
|
@ -10,7 +10,7 @@ module WEBrick_Testing
|
||||||
raise "already started" if @__server
|
raise "already started" if @__server
|
||||||
@__started = false
|
@__started = false
|
||||||
|
|
||||||
Thread.new {
|
@__server_thread = Thread.new {
|
||||||
@__server = WEBrick::HTTPServer.new(
|
@__server = WEBrick::HTTPServer.new(
|
||||||
{
|
{
|
||||||
:Logger => DummyLog.new,
|
:Logger => DummyLog.new,
|
||||||
|
@ -32,6 +32,7 @@ module WEBrick_Testing
|
||||||
@__server.shutdown
|
@__server.shutdown
|
||||||
Thread.pass while @__started # wait until the server is down
|
Thread.pass while @__started # wait until the server is down
|
||||||
}
|
}
|
||||||
|
@__server_thread.join
|
||||||
@__server = nil
|
@__server = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue