From: Maximiliano Curia Date: Tue, 15 May 2018 13:02:16 +0000 (+0200) Subject: kdirwatch tests method specific X-Git-Tag: archive/raspbian/5.77.0-2+rpi1~1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=72111a89a2a0d5d090f712b7684a6607db01fcb9;p=kcoreaddons.git kdirwatch tests method specific Skip the tests that won't work for the current backend Gbp-Pq: Name kdirwatch-tests-method-specific.patch --- diff --git a/autotests/kdirwatch_unittest.cpp b/autotests/kdirwatch_unittest.cpp index 7dd8a08..62f666a 100644 --- a/autotests/kdirwatch_unittest.cpp +++ b/autotests/kdirwatch_unittest.cpp @@ -836,6 +836,11 @@ void KDirWatch_UnitTest::benchNotifyWatcher() KDirWatch watch; watch.addDir(dir.path(), KDirWatch::WatchSubDirs | KDirWatch:: WatchFiles); + auto method = qgetenv("KDIRWATCH_METHOD"); + if ((method != "INotify") && (method != "QFSWatch")) { + QSKIP("Only works with the inotify and qfswatch backends", SkipSingle); + } + // now touch all the files repeatedly and wait for the dirty updates to come in QSignalSpy spy(&watch, &KDirWatch::dirty); QBENCHMARK {