summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/counting
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/testlib/selftests/counting')
-rw-r--r--tests/auto/testlib/selftests/counting/tst_counting.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/counting/tst_counting.cpp b/tests/auto/testlib/selftests/counting/tst_counting.cpp
index da5595b04f..56933c78b7 100644
--- a/tests/auto/testlib/selftests/counting/tst_counting.cpp
+++ b/tests/auto/testlib/selftests/counting/tst_counting.cpp
@@ -287,5 +287,15 @@ void tst_Counting::testSkipInCleanup()
qDebug() << "This test function should execute and then QSKIP in cleanup()";
}
-QTEST_MAIN(tst_Counting)
+int main(int argc, char *argv[])
+{
+#ifdef TESTLIB_VERBOSITY_ARG
+ std::vector<const char*> args(argv, argv + argc);
+ args.push_back(QT_STRINGIFY(TESTLIB_VERBOSITY_ARG));
+ argc = args.size();
+ argv = const_cast<char**>(&args[0]);
+#endif
+
+ QTEST_MAIN_IMPL(tst_Counting)
+}
#include "tst_counting.moc"