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
Activity
Hiroshi Nakamura
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Summary | uncaught timeout seems to cause silent failure | [1.9] uncaught timeout seems to cause silent failure |
| Component/s | Core Classes/Modules [ 12230 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.6 [ 16275 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.6 [ 17062 ] | |
| Fix Version/s | JRuby 1.6RC1 [ 16275 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.7 [ 17049 ] | |
| Fix Version/s | JRuby 1.6 [ 17062 ] |
Charles Oliver Nutter
made changes -
| 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 |
{noformat}
require 'rubygems' require 'spec' # rspec 1.3 require 'timeout' describe 'timeout' do it 'should' do begin Timeout::timeout(2) { sleep } rescue end end end {noformat} 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 |
Charles Oliver Nutter
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Thomas E Enebo [ enebo ] | Charles Oliver Nutter [ headius ] |
| Fix Version/s | JRuby 1.6.2 [ 17306 ] | |
| Resolution | Fixed [ 1 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
I didn't run the script with rspec but the following should be happening.
Right?