[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:
parent
7834bec52a
commit
69c7146a73
1 changed files with 2 additions and 0 deletions
|
@ -61,10 +61,12 @@ void ColorCorrectNightColorTest::initTestCase()
|
||||||
|
|
||||||
void ColorCorrectNightColorTest::init()
|
void ColorCorrectNightColorTest::init()
|
||||||
{
|
{
|
||||||
|
QVERIFY(Test::setupWaylandConnection());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorCorrectNightColorTest::cleanup()
|
void ColorCorrectNightColorTest::cleanup()
|
||||||
{
|
{
|
||||||
|
Test::destroyWaylandConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ColorCorrectNightColorTest::testConfigRead_data()
|
void ColorCorrectNightColorTest::testConfigRead_data()
|
||||||
|
|
Loading…
Reference in a new issue