summaryrefslogtreecommitdiff
path: root/test/drb/ut_eq.rb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-27 15:18:22 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-27 15:18:22 +0000
commit190bc7ae0e7346cc572129eea314c06c1c51cfe8 (patch)
treea23fddc13c30173b19a80f23821fb58c3a80d5ca /test/drb/ut_eq.rb
parenteda3f1be206aa86cb2fb4f795fd33b1df1909cb0 (diff)
fix [Bug #4409]. add DRbServer#here?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb/ut_eq.rb')
-rw-r--r--test/drb/ut_eq.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/drb/ut_eq.rb b/test/drb/ut_eq.rb
new file mode 100644
index 0000000000..10dc85698c
--- /dev/null
+++ b/test/drb/ut_eq.rb
@@ -0,0 +1,30 @@
+require 'drb/drb'
+require 'drb/extserv'
+
+class Foo
+ include DRbUndumped
+end
+
+class Bar
+ include DRbUndumped
+ def initialize
+ @foo = Foo.new
+ end
+ attr_reader :foo
+
+ def foo?(foo)
+ @foo == foo
+ end
+end
+
+if __FILE__ == $0
+ def ARGV.shift
+ it = super()
+ raise "usage: #{$0} <uri> <name>" unless it
+ it
+ end
+
+ DRb.start_service('druby://:0', Bar.new)
+ es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
+ DRb.thread.join
+end