Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353987

Summary: EDC tests timeout when files are missing rather than failing when lack of file detected
Product: [Tools] CDT Reporter: Daniel Thomas <daniel.thomas>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: minor    
Priority: P3 CC: cdtdoug, kirk.beitz
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to detect lack of file problems earlier and take appropriate action. cdtdoug: iplog+

Description Daniel Thomas CLA 2011-08-05 05:52:14 EDT
Build Identifier: 

Some of the EDC tests fail by timing out when expected files don't exist rather than failing as soon as the lack of file is detected. This means that the tests may appear to hang or at least take a very long time.
Affected tests:
org.eclipse.cdt.debug.edc.debugger.tests.Concurrent
org.eclipse.cdt.debug.edc.debugger.tests.OpaqueTypeResolving
org.eclipse.cdt.debug.edc.debugger.tests.RegisterView

I have a patch which tests for the existence of files earlier or throws exceptions at the relevant point so that they fail when the lack of file is first detected.

Reproducible: Always

Steps to Reproduce:
1. Run AllEDCTests on x86_64 and see that Concurrent and RegisterView timeout
2. Run OpaqueTypeResolving on a case sensitive OS and watch it spend 2 minutes timing out. (separate bug and patch filed to fix the problem causing this timeout)
Comment 1 Daniel Thomas CLA 2011-08-05 05:53:30 EDT
Created attachment 200965 [details]
Patch to detect lack of file problems earlier and take appropriate action.
Comment 2 Kirk Beitz CLA 2011-08-06 18:16:20 EDT
patch applied and nominally tested locally; awaiting final review and final
merge to eclipse edc git repository by committer ken ryall.