[MacRuby-devel] [MacRuby] #176: timeout fails to raise a Timeout::Error

MacRuby ruby-noreply at macosforge.org
Tue Dec 9 10:54:22 PST 2008


#176: timeout fails to raise a Timeout::Error
---------------------------------+------------------------------------------
 Reporter:  acangiano@…          |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  major                |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------
 timeout should raise a Timeout::Error with message "execution expired"
 when the time is up. Right now
 it doesn't.

 For example, you can try the following:

 require 'timeout'

 timeout(2) do
   1+1 while true
 end

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/176>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list