diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-03-19 14:34:53 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-03-19 15:44:55 +0100 |
commit | fd2981570a2dd4d681c6374a297867e1df718aad (patch) | |
tree | be291b5cb5a7681d760a9e985b4b41e5fb2321f1 /src/plugins/projectexplorer/gccparser.cpp | |
parent | 909285731f34072c891466189c2bf672da3e8406 (diff) | |
download | qt-creator-fd2981570a2dd4d681c6374a297867e1df718aad.tar.gz |
Add unit tests
Diffstat (limited to 'src/plugins/projectexplorer/gccparser.cpp')
-rw-r--r-- | src/plugins/projectexplorer/gccparser.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/gccparser.cpp b/src/plugins/projectexplorer/gccparser.cpp index 819b823503..1d773956d1 100644 --- a/src/plugins/projectexplorer/gccparser.cpp +++ b/src/plugins/projectexplorer/gccparser.cpp @@ -324,6 +324,31 @@ void ProjectExplorerPlugin::testGccOutputParsers_data() QLatin1String("/home/code/src/creator/src/plugins/projectexplorer/gnumakeparser.cpp"), 264, Constants::TASK_CATEGORY_COMPILE)) << QString(); + QTest::newRow("distcc error(QTCREATORBUG-904)") + << QString::fromLatin1("distcc[73168] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work\n" + "distcc[73168] (dcc_build_somewhere) Warning: failed to distribute, running locally instead") + << OutputParserTester::STDERR + << QString() << QString::fromLatin1("distcc[73168] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work\n" + "distcc[73168] (dcc_build_somewhere) Warning: failed to distribute, running locally instead") + << QList<ProjectExplorer::Task>() + << QString(); + QTest::newRow("ld warning (QTCREATORBUG-905)") + << QString::fromLatin1("ld: warning: Core::IEditor* QVariant::value<Core::IEditor*>() const has different visibility (hidden) in .obj/debug-shared/openeditorsview.o and (default) in .obj/debug-shared/editormanager.o") + << OutputParserTester::STDERR + << QString() << QString() + << ( QList<ProjectExplorer::Task>() + << Task(Task::Warning, + QLatin1String("Core::IEditor* QVariant::value<Core::IEditor*>() const has different visibility (hidden) in .obj/debug-shared/openeditorsview.o and (default) in .obj/debug-shared/editormanager.o"), + QString(), -1, + Constants::TASK_CATEGORY_COMPILE)) + << QString(); + QTest::newRow("Teambuilder issues") + << QString::fromLatin1("TeamBuilder Client:: error: could not find Scheduler, running Job locally...") + << OutputParserTester::STDERR + << QString() << QString::fromLatin1("TeamBuilder Client:: error: could not find Scheduler, running Job locally...") + << QList<ProjectExplorer::Task>() + << QString(); + } void ProjectExplorerPlugin::testGccOutputParsers() |