diff --git a/tests/auto/wayland/cursor/tst_cursor.cpp b/tests/auto/wayland/cursor/tst_cursor.cpp index 303802667a9..e151f2b8629 100644 --- a/tests/auto/wayland/cursor/tst_cursor.cpp +++ b/tests/auto/wayland/cursor/tst_cursor.cpp @@ -18,7 +18,7 @@ public: tst_cursor(); CursorShapeDevice* cursorShape(); private slots: - void init(); + void initTestCase(); void cleanup() { QTRY_VERIFY2(isClean(), qPrintable(dirtyMessage())); } void setCursor(); void overrideCursor(); @@ -40,7 +40,7 @@ CursorShapeDevice* tst_cursor::cursorShape() return manager->m_cursorDevices[0]; } -void tst_cursor::init() +void tst_cursor::initTestCase() { setenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1", 1); } diff --git a/tests/auto/wayland/scaling/tst_scaling.cpp b/tests/auto/wayland/scaling/tst_scaling.cpp index de36d34aa1d..b0ba7931eed 100644 --- a/tests/auto/wayland/scaling/tst_scaling.cpp +++ b/tests/auto/wayland/scaling/tst_scaling.cpp @@ -13,7 +13,7 @@ class tst_scaling : public QObject, private DefaultCompositor { Q_OBJECT private slots: - void init(); + void initTestCase(); void cleanup() { QTRY_VERIFY2(isClean(), qPrintable(dirtyMessage())); } void scaledWindow(); void roundingPolicy_data(); @@ -21,7 +21,7 @@ private slots: }; -void tst_scaling::init() +void tst_scaling::initTestCase() { setenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1", 1); } diff --git a/tests/auto/wayland/xdgshell/tst_xdgshell.cpp b/tests/auto/wayland/xdgshell/tst_xdgshell.cpp index 3a7e001e1d9..d41829c31dc 100644 --- a/tests/auto/wayland/xdgshell/tst_xdgshell.cpp +++ b/tests/auto/wayland/xdgshell/tst_xdgshell.cpp @@ -14,7 +14,7 @@ class tst_xdgshell : public QObject, private DefaultCompositor { Q_OBJECT private slots: - void init(); + void initTestCase(); void cleanup() { QTRY_VERIFY2(isClean(), qPrintable(dirtyMessage())); } void showMinimized(); void basicConfigure(); @@ -40,7 +40,7 @@ private slots: void modalityWithoutTransientParent(); }; -void tst_xdgshell::init() +void tst_xdgshell::initTestCase() { setenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1", 1); }