Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.6.2, JRuby 1.7.0.pre1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Environment:jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-11-18 2e438b1) (Java HotSpot(TM) Client VM 1.6.0_18) [Windows 7-x86-java]
-
Testcase included:yes
-
Number of attachments :
Description
require 'rubygems'
require 'spec' # rspec 1.3
require 'timeout'
describe 'timeout' do
it 'should' do
begin
Timeout::timeout(2) {
sleep
}
rescue
end
end
end
When I run this code, it returns "without a message" and with %ERRORLEVEL% set to 1, so...I think perhaps something bad happens. 1.5.5 and 1.6.0
Cheers!
-r
I didn't run the script with rspec but the following should be happening.
Right?