#603: error handling breaks causing a WIN32API load error to escape from tmpdir
-------------------------+--------------------------------------------------
 Reporter:  j...@…       |       Owner:  lsansone...@…        
     Type:  defect       |      Status:  new                  
 Priority:  blocker      |   Milestone:                       
Component:  MacRuby      |    Keywords:                       
-------------------------+--------------------------------------------------
 Using bacon, Tempfile and error handling at the same time causes a
 WIN32API load attempt in tmpdir with MacRuby 0.5. It seems something
 happens to exception handling that causes the begin … rescue … end block
 in tmpdir.rb to break.

 I'm attaching a test script that produces the following output:

 {{{
 A description
 - shouldn't die

 1 specifications (1 requirements), 0 failures, 0 errors
 bacon.rb:27:in `block': no such file to load -- Win32API (LoadError)
 }}}

 Commenting out either the `require "Tempfile"` line or
 `Bacon.summary_on_exit` line will unbreak the script.

 If I remove the block at the start of tmpdir.rb that attempts to load
 WIN32API, the error goes away.

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to