Fix output parser misinterpreting "At top level:" messages

* Fix the GCC output parser misinterpreting "At top level" messages
   as Errors instead of a simple message.
 * Add unit test to cover this

Task-number: QTCREATORBUG-2202
This commit is contained in:
Tobias Hunger
2010-08-30 11:21:54 +02:00
parent fa53438f91
commit 7b7a974ee8
2 changed files with 11 additions and 0 deletions

View File

@@ -574,6 +574,16 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
Constants::TASK_CATEGORY_COMPILE))
<< QString();
QTest::newRow("QTCREATORBUG-2206")
<< QString::fromLatin1("../../../src/XmlUg/targetdelete.c: At top level:")
<< OutputParserTester::STDERR
<< QString() << QString()
<< ( QList<ProjectExplorer::Task>()
<< Task(Task::Unknown,
QLatin1String("At top level:"),
QLatin1String("../../../src/XmlUg/targetdelete.c"), -1,
Constants::TASK_CATEGORY_COMPILE))
<< QString();
}
void ProjectExplorerPlugin::testGccOutputParsers()