[macruby-changes] [1937] MacRuby/branches/experimental/spec/frozen

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 26 12:13:15 PDT 2009


Revision: 1937
          http://trac.macosforge.org/projects/ruby/changeset/1937
Author:   lsansonetti at apple.com
Date:     2009-06-26 12:13:14 -0700 (Fri, 26 Jun 2009)
Log Message:
-----------
some work on MT-related specs

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/core/thread/critical_spec.rb
    MacRuby/branches/experimental/spec/frozen/core/thread/shared/exit.rb
    MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/sleep_tags.txt

Modified: MacRuby/branches/experimental/spec/frozen/core/thread/critical_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/thread/critical_spec.rb	2009-06-26 19:10:59 UTC (rev 1936)
+++ MacRuby/branches/experimental/spec/frozen/core/thread/critical_spec.rb	2009-06-26 19:13:14 UTC (rev 1937)
@@ -1,7 +1,7 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 require File.dirname(__FILE__) + '/fixtures/classes'
 
-ruby_version_is ""..."1.9.1" do
+ruby_version_is "" ... "1.9" do
   describe "Thread.critical=" do
     before(:each) do
       ScratchPad.clear

Modified: MacRuby/branches/experimental/spec/frozen/core/thread/shared/exit.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/thread/shared/exit.rb	2009-06-26 19:10:59 UTC (rev 1936)
+++ MacRuby/branches/experimental/spec/frozen/core/thread/shared/exit.rb	2009-06-26 19:13:14 UTC (rev 1937)
@@ -74,13 +74,15 @@
     thread.join
     ScratchPad.recorded.should == nil
   end
-  
-  it "killing dying sleeping thread wakes up thread" do
-    t = ThreadSpecs.dying_thread_ensures { Thread.stop; ScratchPad.record :after_stop }
-    Thread.pass while t.status and t.status != "sleep"
-    t.send(@method)
-    t.join
-    ScratchPad.recorded.should == :after_stop
+ 
+  ruby_version_is "" ... "1.9" do 
+    it "killing dying sleeping thread wakes up thread" do
+      t = ThreadSpecs.dying_thread_ensures { Thread.stop; ScratchPad.record :after_stop }
+      Thread.pass while t.status and t.status != "sleep"
+      t.send(@method)
+      t.join
+      ScratchPad.recorded.should == :after_stop
+    end
   end
   
   it "killing dying running does nothing" do

Modified: MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/sleep_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/sleep_tags.txt	2009-06-26 19:10:59 UTC (rev 1936)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/core/kernel/sleep_tags.txt	2009-06-26 19:13:14 UTC (rev 1937)
@@ -1,2 +1 @@
-critical:Kernel#sleep pauses execution indefinitely if not given a duration
 fails:Kernel#sleep is a private method
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090626/8c511a67/attachment-0001.html>


More information about the macruby-changes mailing list