Bug 213690 - [Scanner Discovery] Wrong resolution of linked resources
Summary: [Scanner Discovery] Wrong resolution of linked resources
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 5.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-12-21 06:50 EST by Gerhard Schaber CLA
Modified: 2008-06-22 03:18 EDT (History)
3 users (show)

See Also:


Attachments
A fix for this issue (1.24 KB, patch)
2007-12-21 06:50 EST, Gerhard Schaber CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Schaber CLA 2007-12-21 06:50:51 EST
Created attachment 85708 [details]
A fix for this issue

Build ID: v200712060500

Steps To Reproduce:
1. Create a standard make project
2. Create a linked folder <A>
3. Add the absolute path of <A> as include path (-I) to a build command
4. Build the project

The absolute path of <A> is correctly transformed into a project-relative path (<A>), in order to avoid absolute paths wherever possible. DiscoveredPathContainer.getPathEntries() delivers a wrong absolute path for <A>, because CCommandDSC.makeAbsolute just concatenates the project path with <A>, instead of calculating the resource location of <A>.


More information:
Comment 1 Anton Leherbauer CLA 2008-01-29 04:47:28 EST
Applied patch to HEAD.
Added testcase GCCPerFileBOPConsoleParserTests.testResolvingLinkedFolder_Bug213690.