From: Hannah von Reth Date: Wed, 25 Mar 2020 17:02:55 +0000 (+0100) Subject: Test: Fix testMovedWithError for vfs mode X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~120 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=734e49765d5752f3e290150d258d1d7add621dcc;p=nextcloud-desktop.git Test: Fix testMovedWithError for vfs mode --- diff --git a/test/testsyncmove.cpp b/test/testsyncmove.cpp index bf43fa12e..d0e053708 100644 --- a/test/testsyncmove.cpp +++ b/test/testsyncmove.cpp @@ -865,7 +865,13 @@ private slots: QTest::newRow("Vfs::Off") << Vfs::Off; QTest::newRow("Vfs::WithSuffix") << Vfs::WithSuffix; #ifdef Q_OS_WIN32 - QTest::newRow("Vfs::WindowsCfApi") << Vfs::WindowsCfApi; + if (isVfsPluginAvailable(Vfs::WindowsCfApi)) + { + QTest::newRow("Vfs::WindowsCfApi") << Vfs::WindowsCfApi; + } else { + QWARN("Skipping Vfs::WindowsCfApi"); + } + #endif } @@ -888,7 +894,7 @@ private slots: if (vfsMode != Vfs::Off) { - auto vfs = QSharedPointer(createVfsFromPlugin(Vfs::WithSuffix).release()); + auto vfs = QSharedPointer(createVfsFromPlugin(vfsMode).release()); QVERIFY(vfs); fakeFolder.switchToVfs(vfs); fakeFolder.syncJournal().internalPinStates().setForPath("", PinState::OnlineOnly);