diff --git a/autotests/integration/generic_scene_opengl_test.cpp b/autotests/integration/generic_scene_opengl_test.cpp index 1855a69e45..4bae9b739e 100644 --- a/autotests/integration/generic_scene_opengl_test.cpp +++ b/autotests/integration/generic_scene_opengl_test.cpp @@ -80,9 +80,24 @@ void GenericSceneOpenGLTest::initTestCase() QVERIFY(Compositor::self()); } +void GenericSceneOpenGLTest::testRestart_data() +{ + QTest::addColumn("core"); + + QTest::newRow("GLCore") << true; + QTest::newRow("Legacy") << false; +} + void GenericSceneOpenGLTest::testRestart() { // simple restart of the OpenGL compositor without any windows being shown + + // setup opengl compositing options + auto compositingGroup = kwinApp()->config()->group("Compositing"); + QFETCH(bool, core); + compositingGroup.writeEntry("GLCore", core); + compositingGroup.sync(); + QSignalSpy sceneCreatedSpy(KWin::Compositor::self(), &Compositor::sceneCreated); QVERIFY(sceneCreatedSpy.isValid()); KWin::Compositor::self()->slotReinitialize(); diff --git a/autotests/integration/generic_scene_opengl_test.h b/autotests/integration/generic_scene_opengl_test.h index 2ef4ba9a1c..3e053f311e 100644 --- a/autotests/integration/generic_scene_opengl_test.h +++ b/autotests/integration/generic_scene_opengl_test.h @@ -32,6 +32,7 @@ protected: private Q_SLOTS: void initTestCase(); void cleanup(); + void testRestart_data(); void testRestart(); private: