Commit 7dee10f4 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Plugin tests: Unlimit number of warnings to output

Change-Id: I7e7894c7e436d7eae62429ebc3f97bba4d6e3205
Reviewed-by: default avatarDaniel Teske <>
parent c85c3d15
......@@ -730,14 +730,16 @@ void PluginManager::startTests()
// QTest::qExec() expects basically QCoreApplication::arguments(),
// so prepend a fake argument for the application name.
// Don't run QTest::qExec with only one argument, that'd run
// Don't run QTest::qExec without any test functions, that'd run
// *all* slots as tests.
if (testFunctionsToExecute.size() > 1)
QTest::qExec(pluginSpec->plugin(), testFunctionsToExecute);
if (!testFunctionsToExecute.isEmpty()) {
// QTest::qExec() expects basically QCoreApplication::arguments(),
QStringList qExecArguments = QStringList()
<< QLatin1String("arg0") // fake application name
<< QLatin1String("-maxwarnings") << QLatin1String("0"); // unlimit output
qExecArguments << testFunctionsToExecute;
QTest::qExec(pluginSpec->plugin(), qExecArguments);
if (!d->testSpecs.isEmpty())
QTimer::singleShot(1, QCoreApplication::instance(), SLOT(quit()));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment