Skip to content

Commit

Permalink
tests: skip tst_selftests on Wayland and XWayland
Browse files Browse the repository at this point in the history
QWindow::requestActivate() is not supported.

We have one tst_selftests binary, and will test it with both xcb and
wayland qpa plugin. A runtime check and skip will have different
restult files, which is not implemented in testlib yet.

Task-number: QTBUG-107578
Pick-to: 6.4 6.2
Change-Id: Idc8cb24c6f42a9f0f4dc9493e3fd1a5803ba7ce0
Reviewed-by: Liang Qi <[email protected]>
  • Loading branch information
liangqi committed Oct 14, 2022
1 parent f2aa047 commit bdd2b68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/auto/testlib/selftests/tst_selftests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,11 @@ bool TestLogger::shouldIgnoreTest(const QString &test) const
return true;
#endif

if (!qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY")) {
qDebug() << "TestLogger::shouldIgnoreTest() ignore" << test << "on wayland/xwayland!";
return true;
}

// These tests are affected by timing and whether the CPU tick counter
// is monotonically increasing. They won't work on some machines so
// leave them off by default. Feel free to enable them for your own
Expand Down

0 comments on commit bdd2b68

Please sign in to comment.