[macruby-changes] [4357] MacRuby/trunk/spec/macruby

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 13 15:37:14 PDT 2010


Revision: 4357
          http://trac.macosforge.org/projects/ruby/changeset/4357
Author:   ernest.prabhakar at gmail.com
Date:     2010-07-13 15:37:13 -0700 (Tue, 13 Jul 2010)
Log Message:
-----------
gcd specs all pass most times, pass ci all times

Modified Paths:
--------------
    MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb
    MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt

Modified: MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb
===================================================================
--- MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb	2010-07-13 22:37:12 UTC (rev 4356)
+++ MacRuby/trunk/spec/macruby/core/gcd/source_spec.rb	2010-07-13 22:37:13 UTC (rev 4357)
@@ -78,7 +78,7 @@
           @i = 0
           src = Dispatch::Source.new(@type, 0, 0, @q) {|s|  @i = 42; @sm.signal}
           src << 42
-          @sm.wait
+          @sm.wait(0.1)
           @i.should == 42
         end        
 
@@ -89,7 +89,7 @@
             @sm.signal
           end
           src << 42
-          @sm.wait
+          @sm.wait(0.1)
           @flag.should == true
         end        
 
@@ -100,7 +100,7 @@
             @sm.signal
           end
           src << 42
-          @sm.wait
+          @sm.wait(0.1)
           @i.should == 42
         end        
 
@@ -114,7 +114,7 @@
           src << 17
           src << 25
           src.resume!
-          @sm.wait
+          @sm.wait(0.1)
           @i.should == 42
         end        
       end
@@ -134,7 +134,7 @@
           @i = 0
           src = Dispatch::Source.new(@type, 0, 0, @q) {|s|  @i = 42; @sm.signal}
           src << 42
-          @sm.wait
+          @sm.wait(0.1)
           @i.should == 42
         end        
         
@@ -148,7 +148,7 @@
           src << 0b000_010
           src << 0b101_000
           src.resume!
-          @sm.wait
+          @sm.wait(0.1)
           @i.should == 42 #0b101_010
           src.cancel!
         end        
@@ -179,7 +179,7 @@
           Signal.trap(@signal, "IGNORE")
           Process.kill(@signal, $$)
           Signal.trap(@signal, "DEFAULT")
-          @sm.wait
+          @sm.wait(0.1)
           #while (@fired == false) do; end
           @fired.should == true
           @i.should == @mask
@@ -210,7 +210,7 @@
           Signal.trap(@signal, "IGNORE")
           Process.kill(@signal, $$)
           Signal.trap(@signal, "DEFAULT")
-          @sm.wait
+          @sm.wait(0.1)
           @fired.should == true
           @i.should == 1
           src.cancel!
@@ -346,7 +346,7 @@
             end
             @file.write(@msg)
             @file.flush
-            @sm.wait
+            @sm.wait(0.1)
             @fired.should == true
             @flag.should == @mask
           end    
@@ -354,7 +354,7 @@
           it "does not close file when cancelled given descriptor" do
             @src = Dispatch::Source.new(@type, @file.to_i, 0, @q) { }
             @src.cancel!
-            @sm.wait
+            @sm.wait(0.1)
             @file.closed?.should == false
           end
 

Modified: MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt
===================================================================
--- MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt	2010-07-13 22:37:12 UTC (rev 4356)
+++ MacRuby/trunk/spec/macruby/tags/macruby/core/gcd/source_tags.txt	2010-07-13 22:37:13 UTC (rev 4357)
@@ -1,2 +1,6 @@
-fails:Dispatch::Source of type file: VNODE does not close file when cancelled given descriptor
+fails:Dispatch::Source of type file: READ does close file when cancelled given IO
+fails:Dispatch::Source of type file: WRITE does close file when cancelled given IO
+fails:Dispatch::Source of type file: VNODE fires with data showing mask of vnode events
+#fails:Dispatch::Source of type file: VNODE does not close file when cancelled given descriptor
+#fails:Dispatch::Source of type PROC fires on process event with event mask data
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100713/75962dce/attachment.html>


More information about the macruby-changes mailing list