Issue #6866 has been updated by h.shirosaki (Hiroshi Shirosaki).


This seems related to r36699. It changed #inspect behavior.

DRbObject#to_s is redefined, but #inspect doesn't call #to_s after r36699.
Here is a patch.


diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index 1cb8b1f..d0156fd 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -73,7 +73,7 @@ module DRbCore
   def teardown
     @ext.stop_service if defined?(@ext) && @ext
     DRbService.manager.unregist(@service_name)
-    while (@there.inspect rescue nil)
+    while (@there.to_s rescue nil)
       # nop
     end
     signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :INT : :TERM
@@ -294,7 +294,7 @@ module DRbAry
   def teardown
     @ext.stop_service if defined?(@ext) && @ext
     DRbService.manager.unregist(@service_name)
-    while (@there.inspect rescue nil)
+    while (@there.to_s rescue nil)
       # nop
     end
     signal = /mswin|mingw/ =~ RUBY_PLATFORM ? :INT : :TERM

----------------------------------------
Bug #6866: DRb tests hang on OS X
https://bugs.ruby-lang.org/issues/6866#change-28877

Author: Eregon (Benoit Daloze)
Status: Open
Priority: Normal
Assignee: seki (Masatoshi Seki)
Category: test
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-08-14 trunk 36700) [x86_64-darwin10.8.0]


This seems due to r36456.
The two loops added just keep running. Commenting them seems to solve the problem.
`@there.inspect` is #<DRb::DRbObject:0x00000101059838 @uri="druby://me-myself:52746", @ref=nil>

I recently installed TunTap (http://tuntaposx.sourceforge.net/), I'm unsure if it might be related.


-- 
http://bugs.ruby-lang.org/