mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
Bug 264704 Error parsing: if failing to resolve absolute IPath, search all workspace projects for IPath.
This commit is contained in:
parent
08b56873fd
commit
1fa3b1dd39
1 changed files with 22 additions and 0 deletions
|
@ -1258,4 +1258,26 @@ public class ErrorParserFileMatchingTest extends TestCase {
|
||||||
assertEquals("error",problemMarkerInfo.description);
|
assertEquals("error",problemMarkerInfo.description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if a file from error output can be found.
|
||||||
|
*
|
||||||
|
* @throws Exception...
|
||||||
|
*/
|
||||||
|
public void testMappedRemoteAbsolutePathAnotherProject_Bug264704() throws Exception {
|
||||||
|
|
||||||
|
IProject anotherProject = ResourceHelper.createCDTProject("ProjectMappedRemoteAbsolutePathAnotherProject");
|
||||||
|
|
||||||
|
ResourceHelper.createFolder(anotherProject, "Folder");
|
||||||
|
ResourceHelper.createFolder(anotherProject, "Folder/AbsoluteRemoteFolder");
|
||||||
|
IFile file = ResourceHelper.createFile(anotherProject, "Folder/AbsoluteRemoteFolder/testMappedRemoteAbsolutePathAnotherProject.h");
|
||||||
|
|
||||||
|
parseOutput("/AbsoluteRemoteFolder/testMappedRemoteAbsolutePathAnotherProject.h:1:error");
|
||||||
|
assertEquals(1, errorList.size());
|
||||||
|
|
||||||
|
ProblemMarkerInfo problemMarkerInfo = errorList.get(0);
|
||||||
|
assertEquals("L/ProjectMappedRemoteAbsolutePathAnotherProject/Folder/AbsoluteRemoteFolder/testMappedRemoteAbsolutePathAnotherProject.h",problemMarkerInfo.file.toString());
|
||||||
|
assertEquals(1,problemMarkerInfo.lineNumber);
|
||||||
|
assertEquals("error",problemMarkerInfo.description);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue