mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 295625: Error highlighting in Build Console
related changes to test cases
This commit is contained in:
parent
ebaad16039
commit
ac553dd0a6
1 changed files with 3 additions and 3 deletions
|
@ -195,8 +195,9 @@ public class RegexErrorParserTests extends TestCase {
|
||||||
String fileName = "RegexErrorParser.c";
|
String fileName = "RegexErrorParser.c";
|
||||||
ResourceHelper.createFile(fProject, fileName);
|
ResourceHelper.createFile(fProject, fileName);
|
||||||
|
|
||||||
|
errorList.clear();
|
||||||
ErrorParserManager epManager = new ErrorParserManager(fProject, markerGenerator, new String[0]);
|
ErrorParserManager epManager = new ErrorParserManager(fProject, markerGenerator, new String[0]);
|
||||||
boolean result;
|
|
||||||
ProblemMarkerInfo problemMarkerInfo;
|
ProblemMarkerInfo problemMarkerInfo;
|
||||||
|
|
||||||
// Regular pattern
|
// Regular pattern
|
||||||
|
@ -206,7 +207,6 @@ public class RegexErrorParserTests extends TestCase {
|
||||||
// Eat-line=false + qualifying next pattern (nulls), i.e. generates 2 problems
|
// Eat-line=false + qualifying next pattern (nulls), i.e. generates 2 problems
|
||||||
regexErrorParser.processLine("Variable!Description!10!"+fileName, epManager);
|
regexErrorParser.processLine("Variable!Description!10!"+fileName, epManager);
|
||||||
|
|
||||||
errorList.clear();
|
|
||||||
assertEquals(3, errorList.size());
|
assertEquals(3, errorList.size());
|
||||||
|
|
||||||
// Regular
|
// Regular
|
||||||
|
@ -697,12 +697,12 @@ public class RegexErrorParserTests extends TestCase {
|
||||||
regexErrorParser.addPattern(new RegexErrorPattern("pattern",
|
regexErrorParser.addPattern(new RegexErrorPattern("pattern",
|
||||||
"", "", "", "$0", IMarkerGenerator.SEVERITY_ERROR_RESOURCE, true));
|
"", "", "", "$0", IMarkerGenerator.SEVERITY_ERROR_RESOURCE, true));
|
||||||
|
|
||||||
|
errorList.clear();
|
||||||
ErrorParserManager epManager = new ErrorParserManager(fProject, markerGenerator, new String[0]);
|
ErrorParserManager epManager = new ErrorParserManager(fProject, markerGenerator, new String[0]);
|
||||||
|
|
||||||
regexErrorParser.processLine("wrong pattern", epManager);
|
regexErrorParser.processLine("wrong pattern", epManager);
|
||||||
regexErrorParser.processLine("pattern wrong", epManager);
|
regexErrorParser.processLine("pattern wrong", epManager);
|
||||||
|
|
||||||
errorList.clear();
|
|
||||||
assertEquals(0, errorList.size());
|
assertEquals(0, errorList.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue