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/kfileitemmodeltest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tests/kfileitemmodeltest.cpp') diff --git a/src/tests/kfileitemmodeltest.cpp b/src/tests/kfileitemmodeltest.cpp index bd4a60c09..6583b80f4 100644 --- a/src/tests/kfileitemmodeltest.cpp +++ b/src/tests/kfileitemmodeltest.cpp @@ -673,6 +673,9 @@ void KFileItemModelTest::testExpandItems() void KFileItemModelTest::testExpandParentItems() { +#ifdef Q_OS_WIN + QSKIP("QFileSystemWatcher cannot watch temp directories on Windows CI (access denied)."); +#endif QSignalSpy itemsInsertedSpy(m_model, &KFileItemModel::itemsInserted); QSignalSpy loadingCompletedSpy(m_model, &KFileItemModel::directoryLoadingCompleted); QVERIFY(loadingCompletedSpy.isValid()); @@ -759,6 +762,9 @@ void KFileItemModelTest::testExpandParentItems() */ void KFileItemModelTest::testMakeExpandedItemHidden() { +#ifdef Q_OS_WIN + QSKIP("QFileSystemWatcher cannot watch temp directories on Windows CI (access denied)."); +#endif QSignalSpy itemsInsertedSpy(m_model, &KFileItemModel::itemsInserted); QSignalSpy itemsRemovedSpy(m_model, &KFileItemModel::itemsRemoved); -- cgit v1.3.1