From 6a1cdf4b561be2a88ff41c7e8ceaf18ff3a9a08c Mon Sep 17 00:00:00 2001 From: Andrew Gvozdev Date: Sat, 30 Jan 2010 06:07:26 +0000 Subject: [PATCH] bug 203431: [Error Parser] GNU Make parser - too strict about command name? --- .../errorparsers/tests/MakeErrorParserTests.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/MakeErrorParserTests.java b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/MakeErrorParserTests.java index 87f424fb994..d4128879c87 100644 --- a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/MakeErrorParserTests.java +++ b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/MakeErrorParserTests.java @@ -42,7 +42,6 @@ public class MakeErrorParserTests extends GenericErrorParserTests { // Ignored "make[3]: Nothing to be done for `all'.", "make[2]: `all' is up to date.", - }; private static final int GMAKE_ERROR_STREAM0_INFOS = 2; private static final int GMAKE_ERROR_STREAM0_WARNINGS = 3; @@ -63,6 +62,15 @@ public class MakeErrorParserTests extends GenericErrorParserTests { private static final String[] GMAKE_ERROR_STREAM1_FILENAMES = {"Makefile1", "Makefile2", "Makefile3", "Makefile4", "Makefile5", "Makefile6"}; + private static final String[] GMAKE_ERROR_STREAM2 = { + // Errors + "gmake[3]: *** [Hello.o] Error 1", + "make-381.exe: *** [Hello.o] Error 1", + "gmake381: Target `all' not remade because of errors.", + }; + private static final int GMAKE_ERROR_STREAM2_WARNINGS = 0; + private static final int GMAKE_ERROR_STREAM2_ERRORS = 3; + public MakeErrorParserTests() { super(); } @@ -85,4 +93,9 @@ public class MakeErrorParserTests extends GenericErrorParserTests { runParserTest(GMAKE_ERROR_STREAM1, GMAKE_ERROR_STREAM1_ERRORS, GMAKE_ERROR_STREAM1_WARNINGS, GMAKE_ERROR_STREAM1_FILENAMES, null, new String[]{GMAKE_ERROR_PARSER_ID}); } + + public void testGmakeMessages2() throws IOException { + runParserTest(GMAKE_ERROR_STREAM2, GMAKE_ERROR_STREAM2_ERRORS, GMAKE_ERROR_STREAM2_WARNINGS, + null, null, new String[]{GMAKE_ERROR_PARSER_ID}); + } }