diff options
Diffstat (limited to 'test/drb/ut_eval.rb')
-rw-r--r-- | test/drb/ut_eval.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/drb/ut_eval.rb b/test/drb/ut_eval.rb index 6a81e17d05..4df963e7cd 100644 --- a/test/drb/ut_eval.rb +++ b/test/drb/ut_eval.rb @@ -2,6 +2,14 @@ require 'drb/drb' require 'drb/extserv' class EvalAttack + def initialize + @four = DRb::DRbServer.new('druby://localhost:0', self, {:safe_level => 4}) + end + + def four + DRbObject.new_with_uri(@four.uri) + end + def remote_class DRbObject.new(self.class) end @@ -17,7 +25,7 @@ if __FILE__ == $0 $SAFE = 1 - DRb.start_service('druby://localhost:0', EvalAttack.new) + DRb.start_service('druby://localhost:0', EvalAttack.new, {:safe_level => 2}) es = DRb::ExtServ.new(ARGV.shift, ARGV.shift) DRb.thread.join end |