From 5cd0c642f59924babe66d017d7c0ced7934de3d3 Mon Sep 17 00:00:00 2001 From: Sebastian Englbrecht Date: Mon, 1 Jun 2026 18:22:54 +0200 Subject: tests: fix or skip tests on windows --- src/tests/kitemlistcontrollerexpandtest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tests/kitemlistcontrollerexpandtest.cpp') 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() { -- cgit v1.3.1