diff options
Diffstat (limited to 'src/tests/kitemlistcontrollerexpandtest.cpp')
| -rw-r--r-- | src/tests/kitemlistcontrollerexpandtest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/kitemlistcontrollerexpandtest.cpp b/src/tests/kitemlistcontrollerexpandtest.cpp index 06e58fe6b..c95423197 100644 --- a/src/tests/kitemlistcontrollerexpandtest.cpp +++ b/src/tests/kitemlistcontrollerexpandtest.cpp @@ -80,7 +80,13 @@ void KItemListControllerExpandTest::initTestCase() QVERIFY(m_spyDirectoryLoadingCompleted->wait()); m_container->show(); +#ifdef Q_OS_WIN + if (!QTest::qWaitForWindowExposed(m_container)) { + QSKIP("Window not exposed on Windows, probably running in a headless CI environment."); + } +#else QVERIFY(QTest::qWaitForWindowExposed(m_container)); +#endif } void KItemListControllerExpandTest::cleanupTestCase() { |
