Diffusion KWin d345878b52e5

[autotests] Add Q_CONSTRUCTOR_FUNCTION to X11 specific tests to force xcb

Authored by graesslin on Sep 8 2016, 1:08 PM.

Description

[autotests] Add Q_CONSTRUCTOR_FUNCTION to X11 specific tests to force xcb

The X11 specific tests need to run on QT_QPA_PLATFORM xcb otherwise
they will crash. To enforce this without having to replace QTEST_MAIN
a Q_CONSTRUCTOR_FUNCTION is used to invoke a function which does nothing
except setting the env variable.

Details

Committed
graesslinSep 8 2016, 1:22 PM
Parents
R108:66c61adb6d75: [autotests] Drop KWIN_TEST_MAIN macro
Branches
Unknown
Tags
Unknown