forked from qt-creator/qt-creator
Gccparser: Add unit test
This commit is contained in:
@@ -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 <20>ProFileEvaluator::Private::VisitReturn ProFileEvaluator::Private::evaluateConditionalFunction(const ProString&, const ProStringList&)<29>:\n"
|
||||||
|
"../../../src/shared/proparser/profileevaluator.cpp:2817:9: warning: case value <20>0<EFBFBD> not in enumerated type <20>ProFileEvaluator::Private::TestFunc<6E>")
|
||||||
|
<< OutputParserTester::STDERR
|
||||||
|
<< QString() << QString()
|
||||||
|
<< ( QList<ProjectExplorer::Task>()
|
||||||
|
<< Task(Task::Unknown,
|
||||||
|
QLatin1String("In member function <20>ProFileEvaluator::Private::VisitReturn ProFileEvaluator::Private::evaluateConditionalFunction(const ProString&, const ProStringList&)<29>:"),
|
||||||
|
QLatin1String("../../../src/shared/proparser/profileevaluator.cpp"), -1,
|
||||||
|
Constants::TASK_CATEGORY_COMPILE)
|
||||||
|
<< Task(Task::Warning,
|
||||||
|
QLatin1String("case value <20>0<EFBFBD> not in enumerated type <20>ProFileEvaluator::Private::TestFunc<6E>"),
|
||||||
|
QLatin1String("../../../src/shared/proparser/profileevaluator.cpp"), 2817,
|
||||||
|
Constants::TASK_CATEGORY_COMPILE))
|
||||||
|
<< QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectExplorerPlugin::testGccOutputParsers()
|
void ProjectExplorerPlugin::testGccOutputParsers()
|
||||||
|
|||||||
Reference in New Issue
Block a user