Skip to content

Commit eb474b2

Browse files
committed
add check for problem lines without filename and linenumber
1 parent acd6341 commit eb474b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

com.googlecode.cppcheclipse.core.tests/src/com/googlecode/cppcheclipse/core/command/TestCppcheckCommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public void testParseResultLines() throws Exception {
3636

3737
Problem problem2 = CppcheckCommand.parseResult(line2, null);
3838
assertProblem(problem2, new File("/var/tmp/file2.cpp"), 7, "error", "112", "Error message2");
39+
40+
String line3 = ";;information;missingInclude;Cppcheck cannot find all the include files (use --check-config for details)";
41+
Problem problem3 = CppcheckCommand.parseResult(line3, null);
42+
assertProblem(problem3, null, -1, "information", "missingInclude", "Cppcheck cannot find all the include files (use --check-config for details)");
3943
}
4044

4145
private void assertProblem(Problem problem, File file, int line, String category, String id, String message) {

0 commit comments

Comments
 (0)