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

MacRuby ruby-noreply at macosforge.org
Wed Jun 30 18:08:09 PDT 2010


#176: timeout fails to raise a Timeout::Error
---------------------------------+------------------------------------------
 Reporter:  acangiano@…          |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  major                |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------
Description changed by martinlagardette@…:

Old description:

> 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

New description:

 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#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list