diff --git a/test/main.cpp b/test/main.cpp index 7ee90a2..1a51960 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -5,8 +5,8 @@ bool success = true; -void runTest(QObject *test) { - int retVal = QTest::qExec(test); +static void runTest(QObject *test, int argc, char** argv) { + int retVal = QTest::qExec(test, argc, argv); delete test; success &= retVal == 0; } @@ -15,7 +15,7 @@ int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); - runTest(new ConnectionTest()); + runTest(new ConnectionTest(), argc, argv); if (success) qDebug() << "SUCCESS";