Wayland tests: use initTestCase() instead of init() to set env
Once is fine. We don't need to set the environment before each test function. Pick-to: 6.10 Change-Id: Id27938950c196d6d3397fffd2fbf1a66fe7504f9 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: David Redondo <qt@david-redondo.de>
This commit is contained in:
parent
687fb92440
commit
4e57583f33
@ -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()
|
||||
{
|
||||
qputenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1");
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
qputenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1");
|
||||
}
|
||||
|
@ -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()
|
||||
{
|
||||
qputenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user