Timeout.timeout doesn't raise given exception
---------------------------------------------
Key: JRUBY-3783
URL: http://jira.codehaus.org/browse/JRUBY-3783
Project: JRuby
Issue Type: Bug
Reporter: Jari Bakken
Assignee: Thomas E Enebo
Timeout.timeout will disregard its second argument and always raise
Timeout::ExitException
$ ruby -v -r timeout -e 'Timeout.timeout(1, StandardError) { sleep 1.2 }'
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:60:
execution expired (StandardError)
from -e:1
$ ./jruby -v -r timeout -e 'Timeout.timeout(1, StandardError) { sleep 1.2 }'
jruby 1.4.0dev (ruby 1.8.6p287) (2009-06-30 f35b257) (Java HotSpot(TM) 64-Bit
Server VM 1.6.0_13) [x86_64-java]
-e:1: execution expired (Timeout::ExitException)
from -e:1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email