Skip to content
Snippets Groups Projects
Commit 12c7c72e authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Gccparser: Add unit test

parent 9494352a
No related branches found
No related tags found
No related merge requests found
...@@ -623,6 +623,21 @@ void ProjectExplorerPlugin::testGccOutputParsers_data() ...@@ -623,6 +623,21 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
Constants::TASK_CATEGORY_COMPILE)) Constants::TASK_CATEGORY_COMPILE))
<< QString(); << QString();
QTest::newRow("enumeration warning")
<< QString::fromLatin1("../../../src/shared/proparser/profileevaluator.cpp: In member function ProFileEvaluator::Private::VisitReturn ProFileEvaluator::Private::evaluateConditionalFunction(const ProString&, const ProStringList&):\n"
"../../../src/shared/proparser/profileevaluator.cpp:2817:9: warning: case value 0 not in enumerated type ProFileEvaluator::Private::TestFunc")
<< OutputParserTester::STDERR
<< QString() << QString()
<< ( QList<ProjectExplorer::Task>()
<< Task(Task::Unknown,
QLatin1String("In member function ProFileEvaluator::Private::VisitReturn ProFileEvaluator::Private::evaluateConditionalFunction(const ProString&, const ProStringList&):"),
QLatin1String("../../../src/shared/proparser/profileevaluator.cpp"), -1,
Constants::TASK_CATEGORY_COMPILE)
<< Task(Task::Warning,
QLatin1String("case value 0 not in enumerated type ProFileEvaluator::Private::TestFunc"),
QLatin1String("../../../src/shared/proparser/profileevaluator.cpp"), 2817,
Constants::TASK_CATEGORY_COMPILE))
<< QString();
} }
void ProjectExplorerPlugin::testGccOutputParsers() void ProjectExplorerPlugin::testGccOutputParsers()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment