diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-01 03:07:58 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-01 03:07:58 +0000 |
commit | 5cd71131b849db00f94c87dc6fcf403731338161 (patch) | |
tree | bc28733a54425625760aad48e44929d1d38945f1 /test/drb/ut_eval.rb | |
parent | 09ab3a0a9f9fa7d3f091bec988c52b9f8ed62b41 (diff) | |
download | ruby-5cd71131b849db00f94c87dc6fcf403731338161.tar.gz |
* test/drb: Wrap tests definitions by DRbTests module. This makes
several tests (ACLEntryTest, TestBug4409, etc.) easier to understand
that they are tests for DRb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb/ut_eval.rb')
-rw-r--r-- | test/drb/ut_eval.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/drb/ut_eval.rb b/test/drb/ut_eval.rb index 1dbf8a5c50..c456790fd9 100644 --- a/test/drb/ut_eval.rb +++ b/test/drb/ut_eval.rb @@ -1,6 +1,8 @@ require 'drb/drb' require 'drb/extserv' +module DRbTests + class EvalAttack def initialize @four = DRb::DRbServer.new('druby://localhost:0', self, {:safe_level => 4}) @@ -15,6 +17,8 @@ class EvalAttack end end +end + if __FILE__ == $0 def ARGV.shift @@ -25,7 +29,7 @@ if __FILE__ == $0 $SAFE = 1 - DRb.start_service('druby://localhost:0', EvalAttack.new, {:safe_level => 2}) + DRb.start_service('druby://localhost:0', DRbTests::EvalAttack.new, {:safe_level => 2}) es = DRb::ExtServ.new(ARGV.shift, ARGV.shift) DRb.thread.join es.stop_service if es.alive? |