forked from qt-creator/qt-creator
ClangStaticAnalyzer: Tests: Clarify meaning of assert
'arguments.first().toBool()' returned FALSE ...is not very expressive. Change-Id: Ia0c8e8fbe2e84ea4f41668a5179a63e2003bab03 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -107,7 +107,8 @@ void ClangStaticAnalyzerPreconfiguredSessionTests::testPreconfiguredSession()
|
|||||||
QSignalSpy waitUntilAnalyzerFinished(&m_analyzerTool, SIGNAL(finished(bool)));
|
QSignalSpy waitUntilAnalyzerFinished(&m_analyzerTool, SIGNAL(finished(bool)));
|
||||||
QVERIFY(waitUntilAnalyzerFinished.wait(30000));
|
QVERIFY(waitUntilAnalyzerFinished.wait(30000));
|
||||||
const QList<QVariant> arguments = waitUntilAnalyzerFinished.takeFirst();
|
const QList<QVariant> arguments = waitUntilAnalyzerFinished.takeFirst();
|
||||||
QVERIFY(arguments.first().toBool());
|
const bool analyzerFinishedSuccessfully = arguments.first().toBool();
|
||||||
|
QVERIFY(analyzerFinishedSuccessfully);
|
||||||
QCOMPARE(m_analyzerTool.diagnostics().count(), 0);
|
QCOMPARE(m_analyzerTool.diagnostics().count(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user