From c837e1c010e6645f355c54985d13a92f9986d05c Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 5 Jun 2025 11:30:01 +0200 Subject: [PATCH] fix(tests): will currently detect wrong attempts to access deleted files with virtual files we may wrongly try to access a file we just deleted in which case an assert should ensure we capture this during automated tests Signed-off-by: Matthieu Gallien --- src/libsync/vfs/cfapi/cfapiwrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsync/vfs/cfapi/cfapiwrapper.cpp b/src/libsync/vfs/cfapi/cfapiwrapper.cpp index fd6e0722e4..a573a8ad58 100644 --- a/src/libsync/vfs/cfapi/cfapiwrapper.cpp +++ b/src/libsync/vfs/cfapi/cfapiwrapper.cpp @@ -780,6 +780,7 @@ OCC::CfApiWrapper::FileHandle OCC::CfApiWrapper::handleForPath(const QString &pa if (!FileSystem::fileExists(path)) { qCWarning(lcCfApiWrapper) << "does not exist" << path; + Q_ASSERT(false); return {}; }