From 69c7146a73cf3de440b38426046129f98ccff067 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 30 Nov 2018 11:36:57 +0000 Subject: [PATCH] [autotests] Stabilise colorcorrect test Summary: It crashes occasionally as the connection thread is still processing events when the app is tearing down. These changes bring it in line with the other tests using WAYLANDTEST_MAIN. Test Plan: Relevant test now passes. Ran repeatedl without a crash Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17254 --- autotests/integration/colorcorrect_nightcolor_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autotests/integration/colorcorrect_nightcolor_test.cpp b/autotests/integration/colorcorrect_nightcolor_test.cpp index 84571d6dfa..49a810f2fa 100644 --- a/autotests/integration/colorcorrect_nightcolor_test.cpp +++ b/autotests/integration/colorcorrect_nightcolor_test.cpp @@ -61,10 +61,12 @@ void ColorCorrectNightColorTest::initTestCase() void ColorCorrectNightColorTest::init() { + QVERIFY(Test::setupWaylandConnection()); } void ColorCorrectNightColorTest::cleanup() { + Test::destroyWaylandConnection(); } void ColorCorrectNightColorTest::testConfigRead_data()