From 48e2e7c9bcd24cc010a6af0a455f8793ea863d40 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 1 Aug 2017 09:56:00 +0200 Subject: autotests: fix the failures I got here. 1) some of them can't run in parallel 2) kconfigskeletontest failed due to KSharedConfig being used under the scene (for a year now), and there's probably some QPA or widget style holding a ref (here, not in the CI). Indirectly, simply setting QStandardPaths::setTestModeEnabled(true) fixes this since KSharedConfig will then not share the instance with the non-test-mode-enabled instance. --- autotests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'autotests/CMakeLists.txt') diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index c1ae1de0..a07636d5 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -61,5 +61,10 @@ ecm_add_tests( LINK_LIBRARIES KF5::ConfigGui Qt5::Test ) +# These tests do a global cleanup of ~/.qttest, so they can't run in parallel +set_tests_properties(kconfigcore-kconfigtest PROPERTIES RUN_SERIAL TRUE) +set_tests_properties(kconfigcore-kconfignokdehometest PROPERTIES RUN_SERIAL TRUE) +set_tests_properties(kconfiggui-kconfigguitest PROPERTIES RUN_SERIAL TRUE) + add_subdirectory(kconfig_compiler) -- cgit v1.2.1