[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
This commit is contained in:
David Edmundson 2018-11-30 11:36:57 +00:00
parent 7834bec52a
commit 69c7146a73

View file

@ -61,10 +61,12 @@ void ColorCorrectNightColorTest::initTestCase()
void ColorCorrectNightColorTest::init()
{
QVERIFY(Test::setupWaylandConnection());
}
void ColorCorrectNightColorTest::cleanup()
{
Test::destroyWaylandConnection();
}
void ColorCorrectNightColorTest::testConfigRead_data()