From 54393f7e82ace83d2ee89453f7c3ca37cf98876c Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Sun, 14 Mar 2010 14:59:25 +0100
Subject: [PATCH] Extend gccparser unit tests

---
 src/plugins/projectexplorer/gccparser.cpp | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/plugins/projectexplorer/gccparser.cpp b/src/plugins/projectexplorer/gccparser.cpp
index 512cbe58a86..819b8235037 100644
--- a/src/plugins/projectexplorer/gccparser.cpp
+++ b/src/plugins/projectexplorer/gccparser.cpp
@@ -303,6 +303,26 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
                         QLatin1String("unused variable 'handler'"),
                         QLatin1String("../../../../master/src/plugins/debugger/gdb/gdbengine.cpp"), 2115,
                         Constants::TASK_CATEGORY_COMPILE))
+            << QString();    
+    QTest::newRow("gnumakeparser.cpp errors")
+            << QString::fromLatin1("/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp: In member function 'void ProjectExplorer::ProjectExplorerPlugin::testGnuMakeParserTaskMangling_data()':\n"
+                                   "/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp:264: error: expected primary-expression before ':' token\n"
+                                   "/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp:264: error: expected ';' before ':' token")
+            << OutputParserTester::STDERR
+            << QString() << QString()
+            << (QList<ProjectExplorer::Task>()
+                << Task(Task::Unknown,
+                        QLatin1String("In member function 'void ProjectExplorer::ProjectExplorerPlugin::testGnuMakeParserTaskMangling_data()':"),
+                        QLatin1String("/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp"), -1,
+                        Constants::TASK_CATEGORY_COMPILE)
+                << Task(Task::Error,
+                        QLatin1String("expected primary-expression before ':' token"),
+                        QLatin1String("/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp"), 264,
+                        Constants::TASK_CATEGORY_COMPILE)
+                << Task(Task::Error,
+                        QLatin1String("expected ';' before ':' token"),
+                        QLatin1String("/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp"), 264,
+                        Constants::TASK_CATEGORY_COMPILE))
             << QString();
 }
 
-- 
GitLab