mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 263987: [Error Parser] Uses up too much of the line
Test case added
This commit is contained in:
parent
d81756f82e
commit
04c34c4b98
2 changed files with 14 additions and 1 deletions
|
@ -126,4 +126,17 @@ public class GCCErrorParserTests extends GenericErrorParserTests {
|
||||||
runParserTest(GCC_ERROR_STREAM5, GCC_ERROR_STREAM5_ERRORS, GCC_ERROR_STREAM5_WARNINGS, GCC_ERROR_STREAM5_FILENAMES,
|
runParserTest(GCC_ERROR_STREAM5, GCC_ERROR_STREAM5_ERRORS, GCC_ERROR_STREAM5_WARNINGS, GCC_ERROR_STREAM5_FILENAMES,
|
||||||
null, new String[]{GCC_ERROR_PARSER_ID});
|
null, new String[]{GCC_ERROR_PARSER_ID});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testGccErrorMessages_Colon_bug263987() throws IOException {
|
||||||
|
runParserTest(
|
||||||
|
new String[] {"foo.cc:11:20: error: value with length 0 violates the length restriction: length (1 .. infinity)",},
|
||||||
|
1, // errors
|
||||||
|
0, // warnings
|
||||||
|
new String[] {"foo.cc"},
|
||||||
|
new String[] {"value with length 0 violates the length restriction: length (1 .. infinity)"},
|
||||||
|
new String[] {GCC_ERROR_PARSER_ID}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,7 @@ public abstract class GenericErrorParserTests extends TestCase {
|
||||||
if (expectedDescriptions != null) {
|
if (expectedDescriptions != null) {
|
||||||
assertNotNull(markerGenerator.lastDescription);
|
assertNotNull(markerGenerator.lastDescription);
|
||||||
for (int i = 0; i < expectedDescriptions.length; i++) {
|
for (int i = 0; i < expectedDescriptions.length; i++) {
|
||||||
assertTrue(markerGenerator.lastDescription.matches(expectedDescriptions[i]));
|
assertEquals(expectedDescriptions[i],markerGenerator.lastDescription);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue