forked from qt-creator/qt-creator
OutputParser: Treat ranlib warnings as warnings
Task-number: QTCREATORBUG-13111 Change-Id: Ifead2f7fa8d00eb044894b6d9ef0e7626e13f867 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -88,7 +88,6 @@ void GccParser::stdError(const QString &line)
|
||||
}
|
||||
|
||||
QRegularExpressionMatch match = m_regExpGccNames.match(lne);
|
||||
|
||||
if (match.hasMatch()) {
|
||||
QString description = lne.mid(match.capturedLength());
|
||||
Task::TaskType type = Task::Error;
|
||||
@@ -458,12 +457,6 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
|
||||
<< QString() << QString::fromLatin1("rm: cannot remove `release/moc_mainwindow.cpp': No such file or directory\n")
|
||||
<< QList<Task>()
|
||||
<< QString();
|
||||
QTest::newRow("ranlib false positive")
|
||||
<< QString::fromLatin1("ranlib: file: libSupport.a(HashTable.o) has no symbols")
|
||||
<< OutputParserTester::STDERR
|
||||
<< QString() << QString::fromLatin1("ranlib: file: libSupport.a(HashTable.o) has no symbols\n")
|
||||
<< QList<Task>()
|
||||
<< QString();
|
||||
QTest::newRow("ld: missing library")
|
||||
<< QString::fromLatin1("/usr/bin/ld: cannot find -ldoesnotexist")
|
||||
<< OutputParserTester::STDERR
|
||||
@@ -866,6 +859,29 @@ void ProjectExplorerPlugin::testGccOutputParsers_data()
|
||||
categoryCompile)
|
||||
)
|
||||
<< QString();
|
||||
|
||||
QTest::newRow("Mac: ranlib warning")
|
||||
<< QString::fromLatin1("ranlib: file: lib/libtest.a(Test0.cpp.o) has no symbols")
|
||||
<< OutputParserTester::STDERR
|
||||
<< QString() << QString()
|
||||
<< (QList<Task>()
|
||||
<< Task(Task::Warning,
|
||||
QLatin1String("file: lib/libtest.a(Test0.cpp.o) has no symbols"),
|
||||
Utils::FileName(), -1,
|
||||
categoryCompile)
|
||||
)
|
||||
<< QString();
|
||||
QTest::newRow("Mac: ranlib warning2")
|
||||
<< QString::fromLatin1("/path/to/XCode/and/ranlib: file: lib/libtest.a(Test0.cpp.o) has no symbols")
|
||||
<< OutputParserTester::STDERR
|
||||
<< QString() << QString()
|
||||
<< (QList<Task>()
|
||||
<< Task(Task::Warning,
|
||||
QLatin1String("file: lib/libtest.a(Test0.cpp.o) has no symbols"),
|
||||
Utils::FileName(), -1,
|
||||
categoryCompile)
|
||||
)
|
||||
<< QString();
|
||||
}
|
||||
|
||||
void ProjectExplorerPlugin::testGccOutputParsers()
|
||||
|
||||
Reference in New Issue
Block a user