~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to test/xmlrpc/webrick_testing.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2008-01-24 11:42:29 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080124114229-jw2f87rdxlq6gp11
Tags: 1.9.0.0-2ubuntu1
* Merge from debian unstable, remaining changes:
  - Robustify check for target_os, fixing build failure on lpia.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    raise "already started" if @__server
11
11
    @__started = false
12
12
 
13
 
    Thread.new {
 
13
    @__server_thread = Thread.new {
14
14
      @__server = WEBrick::HTTPServer.new(
15
15
        { 
16
16
          :Logger => DummyLog.new,
32
32
      @__server.shutdown
33
33
      Thread.pass while @__started # wait until the server is down
34
34
    }
 
35
    @__server_thread.join
35
36
    @__server = nil
36
37
  end
37
38
end