[macruby-changes] [1457] MacRuby/branches/experimental/spec/frozen/core/kernel/sleep_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Apr 22 15:10:25 PDT 2009
Revision: 1457
http://trac.macosforge.org/projects/ruby/changeset/1457
Author: eloy.de.enige at gmail.com
Date: 2009-04-22 15:10:25 -0700 (Wed, 22 Apr 2009)
Log Message:
-----------
Ensure the thread is asleep before continuing in kernel/sleep_spec.
Modified Paths:
--------------
MacRuby/branches/experimental/spec/frozen/core/kernel/sleep_spec.rb
Modified: MacRuby/branches/experimental/spec/frozen/core/kernel/sleep_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/kernel/sleep_spec.rb 2009-04-22 22:10:15 UTC (rev 1456)
+++ MacRuby/branches/experimental/spec/frozen/core/kernel/sleep_spec.rb 2009-04-22 22:10:25 UTC (rev 1457)
@@ -31,7 +31,8 @@
5
end
lock.receive.should == :ready
- Thread.pass unless t.status == "sleep"
+ # wait until the thread has gone to sleep
+ Thread.pass until t.status == "sleep"
t.run
t.value.should == 5
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090422/f282a9e0/attachment-0001.html>
More information about the macruby-changes
mailing list