diff options
author | Nicolas Arnaud-Cormos <nicolas@kdab.com> | 2012-01-08 17:04:47 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2012-01-11 13:05:12 +0100 |
commit | 6f085665cfcb9eb09da91bb9101e6524713ef149 (patch) | |
tree | a8770f18ed33b2eb08d9440b36e8fe9e6b6fb331 /src/plugins/projectexplorer/gccparser.cpp | |
parent | 7986fbd08d5a449b2a64967b4790ae37742dee84 (diff) | |
download | qt-creator-6f085665cfcb9eb09da91bb9101e6524713ef149.tar.gz |
Fix issues type with ldparser.
Sometime, in the most general case, the message is a warning, and not an error.
Two cases:
* linker returning a message like this: 'filename: warning: description'
* uic returns messages like this: 'Warning: description'
Change-Id: I2babe1de2753ea8b2871419f1b1405eb7ae73d48
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/gccparser.cpp')
-rw-r--r-- | src/plugins/projectexplorer/gccparser.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/gccparser.cpp b/src/plugins/projectexplorer/gccparser.cpp index f6094984fe..c1682dca48 100644 --- a/src/plugins/projectexplorer/gccparser.cpp +++ b/src/plugins/projectexplorer/gccparser.cpp @@ -682,6 +682,28 @@ void ProjectExplorerPlugin::testGccOutputParsers_data() QLatin1String("cns5k_ins_parser_tests.cpp"), -1, categoryCompile)) << QString(); + + QTest::newRow("uic warning") + << QString::fromLatin1("mainwindow.ui: Warning: The name 'pushButton' (QPushButton) is already in use, defaulting to 'pushButton1'.") + << OutputParserTester::STDERR + << QString() << QString() + << ( QList<ProjectExplorer::Task>() + << Task(Task::Warning, + QLatin1String("The name 'pushButton' (QPushButton) is already in use, defaulting to 'pushButton1'."), + QLatin1String("mainwindow.ui"), -1, + Constants::TASK_CATEGORY_COMPILE)) + << QString(); + + QTest::newRow("libimf warning") + << QString::fromLatin1("libimf.so: warning: warning: feupdateenv is not implemented and will always fail") + << OutputParserTester::STDERR + << QString() << QString() + << ( QList<ProjectExplorer::Task>() + << Task(Task::Warning, + QLatin1String("warning: feupdateenv is not implemented and will always fail"), + QLatin1String("libimf.so"), -1, + Constants::TASK_CATEGORY_COMPILE)) + << QString(); } void ProjectExplorerPlugin::testGccOutputParsers() |