summaryrefslogtreecommitdiffstats
path: root/test/drb/ut_safe1.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/drb/ut_safe1.rb')
-rw-r--r--test/drb/ut_safe1.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/drb/ut_safe1.rb b/test/drb/ut_safe1.rb
new file mode 100644
index 000000000..4eb3192e9
--- /dev/null
+++ b/test/drb/ut_safe1.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
+
+ $SAFE = 1
+
+ DRb.start_service(nil, [1, 2, 'III', 4, "five", 6])
+ es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
+ DRb.thread.join
+end