mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 262988 Additional Error Parser Tests for relative paths -- those prepended by '../'
This commit is contained in:
parent
679552dc61
commit
d9addda21a
1 changed files with 35 additions and 0 deletions
|
@ -676,6 +676,23 @@ public class ErrorParserFileMatchingTest extends TestCase {
|
|||
assertEquals("error",problemMarkerInfo.description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a file from error output can be found.
|
||||
* @throws Exception...
|
||||
*/
|
||||
public void testRelativePathUpSubfolderBug262988() throws Exception {
|
||||
ResourceHelper.createFolder(fProject, "Folder");
|
||||
ResourceHelper.createFile(fProject, "Folder/testRelativePathUpSubfolder.c");
|
||||
|
||||
parseOutput("../Folder/testRelativePathUpSubfolder.c:1:error");
|
||||
assertEquals(1, errorList.size());
|
||||
|
||||
ProblemMarkerInfo problemMarkerInfo = errorList.get(0);
|
||||
assertEquals("L/FindMatchingFilesTest/Folder/testRelativePathUpSubfolder.c",problemMarkerInfo.file.toString());
|
||||
assertEquals(1,problemMarkerInfo.lineNumber);
|
||||
assertEquals("error",problemMarkerInfo.description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a file from error output can be found.
|
||||
* @throws Exception...
|
||||
|
@ -814,6 +831,24 @@ public class ErrorParserFileMatchingTest extends TestCase {
|
|||
assertEquals("error",problemMarkerInfo.description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a file from error output can be found.
|
||||
* @throws Exception...
|
||||
*/
|
||||
public void testUppercase2InSubFolder() throws Exception {
|
||||
// Note that old MSDOS can handle only 8 characters in file name
|
||||
ResourceHelper.createFolder(fProject, "Folder");
|
||||
ResourceHelper.createFile(fProject, "Folder/UPCASE2.c");
|
||||
|
||||
parseOutput("UpCase2.c:1:error");
|
||||
assertEquals(1, errorList.size());
|
||||
|
||||
ProblemMarkerInfo problemMarkerInfo = errorList.get(0);
|
||||
assertEquals("L/FindMatchingFilesTest/Folder/UPCASE2.c",problemMarkerInfo.file.toString());
|
||||
assertEquals(1,problemMarkerInfo.lineNumber);
|
||||
assertEquals("error",problemMarkerInfo.description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a file from error output can be found.
|
||||
* @throws Exception...
|
||||
|
|
Loading…
Add table
Reference in a new issue