diff options
Diffstat (limited to 'jni/ruby/test/drb/ut_array.rb')
-rw-r--r-- | jni/ruby/test/drb/ut_array.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/jni/ruby/test/drb/ut_array.rb b/jni/ruby/test/drb/ut_array.rb new file mode 100644 index 0000000..01599f1 --- /dev/null +++ b/jni/ruby/test/drb/ut_array.rb @@ -0,0 +1,16 @@ +require 'drb/drb' +require 'drb/extserv' + +if __FILE__ == $0 + def ARGV.shift + it = super() + raise "usage: #{$0} <uri> <name>" unless it + it + end + + DRb.start_service('druby://localhost:0', [1, 2, 'III', 4, "five", 6]) + es = DRb::ExtServ.new(ARGV.shift, ARGV.shift) + DRb.thread.join + es.stop_service if es.alive? +end + |