summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-10-17 14:11:13 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-18 00:56:54 +0200
commitbe9939ac8988deb17cf0f2c29bed6b3e0fbbcf40 (patch)
tree289a71824d0b3457d75ceebfc46b581a17d66227 /tests
parent4ab691ad65967be01e4d4eb90c2b044e0307fa77 (diff)
Reduce the runtime of tst_selftests
The addition of testing for multiple loggers greatly increased the total runtime of this test, in fact making it the slowest testcase in Qt. Fortunately this is only due to a couple of slow subtests whose behavior is unlikely to be affected by the loggers. Change it to run these slow subtests just for a couple of loggers, instead of all the combinations. Change-Id: Ie90f6c0ca29470ed6a7c4e2e185f852602a2d162 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/testlib/selftests/tst_selftests.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp
index b754034698..bf1de193d2 100644
--- a/tests/auto/testlib/selftests/tst_selftests.cpp
+++ b/tests/auto/testlib/selftests/tst_selftests.cpp
@@ -395,6 +395,12 @@ void tst_Selftests::runSubTest_data()
if (subtest == "float") {
continue;
}
+ // these tests are quite slow, and running them for all the loggers significantly
+ // increases the overall test time. They do not really relate to logging, so it
+ // should be safe to run them just for the stdout loggers.
+ if (subtest == "benchlibcallgrind" || subtest == "sleep") {
+ continue;
+ }
}
QTest::newRow(qPrintable(QString("%1 %2").arg(subtest).arg(loggerSet.name)))