Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-03-25 20:02:55 +0300
committerHannah von Reth <vonreth@kde.org>2020-03-26 10:25:45 +0300
commit6a424685130d4ffb1d2c96512932506d60e830ae (patch)
treead219a0d8128a36894b4f42a082b5e2ee32fadb3 /test
parent934098b6638913fce24c4f00c9db08c87ac7fdc9 (diff)
Test: Fix testMovedWithError for vfs mode
Diffstat (limited to 'test')
-rw-r--r--test/testsyncmove.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/testsyncmove.cpp b/test/testsyncmove.cpp
index 4a33180bc..9476434fb 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<Vfs>(createVfsFromPlugin(Vfs::WithSuffix).release());
+ auto vfs = QSharedPointer<Vfs>(createVfsFromPlugin(vfsMode).release());
QVERIFY(vfs);
fakeFolder.switchToVfs(vfs);
fakeFolder.syncJournal().internalPinStates().setForPath("", PinState::OnlineOnly);