~ubuntu-branches/ubuntu/lucid/jruby/lucid

« back to all changes in this revision

Viewing changes to test/externals/ruby1.9/drb/ut_drb_drbunix.rb

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Delafond
  • Date: 2009-12-09 17:30:55 UTC
  • Revision ID: james.westby@ubuntu.com-20091209173055-8ffzikq1768gywux
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require "#{File.dirname(File.expand_path(__FILE__))}/ut_drb"
 
2
 
 
3
if __FILE__ == $0
 
4
  def ARGV.shift
 
5
    it = super()
 
6
    raise "usage: #{$0} <manager-uri> <name>" unless it
 
7
    it
 
8
  end
 
9
 
 
10
  DRb::DRbServer.default_argc_limit(8)
 
11
  DRb::DRbServer.default_load_limit(4096)
 
12
  DRb.start_service('drbunix:', DRbEx.new)
 
13
  es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
 
14
  DRb.thread.join
 
15
end
 
16