summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qfilesystemwatcher
diff options
context:
space:
mode:
authorŁukasz Matysiak <lukasz.matysiak@qt.io>2023-11-08 09:30:16 +0100
committerŁukasz Matysiak <lukasz.matysiak@qt.io>2023-12-28 00:43:51 +0000
commiteabef00425083f19b0da0380378e13780d44a199 (patch)
tree2aac0fc3a9dea5b8a43b342e2064d5b80a1cb18f /tests/auto/corelib/io/qfilesystemwatcher
parent1f32345a9a30ec11e9213d87b6b18b56beccbe2c (diff)
Skip adding a test case for a native backend when QT_NO_INOTIFY is set
Some platforms like VxWorks do not support inotify or any similar solution for file watching. Because of that, the implementation falls back to polling. That means that tests that require a native backend will fail. Fix the problem by skipping adding a test case for a native backend. Task-number: QTBUG-115777 Pick-to: 6.7 Change-Id: I0d683e6376a0453bd2fd591302c4f3ef7ceea87c Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qfilesystemwatcher')
-rw-r--r--tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp b/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp
index de10072491..8b8d572526 100644
--- a/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp
+++ b/tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp
@@ -249,7 +249,9 @@ void tst_QFileSystemWatcher::watchDirectory_data()
QTest::addColumn<QStringList>("testDirNames");
const QStringList testDirNames = {QStringLiteral("testdir"), QStringLiteral("testdir2")};
+#if !defined(QT_NO_INOTIFY)
QTest::newRow("native backend") << "native" << testDirNames;
+#endif
QTest::newRow("poller backend") << "poller" << testDirNames;
}