Test: Fix testMovedWithError for vfs mode

This commit is contained in:
Hannah von Reth 2020-03-25 18:02:55 +01:00 committed by Kevin Ottens
parent 85aefa4232
commit 734e49765d
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -865,7 +865,13 @@ private slots:
QTest::newRow("Vfs::Off") << Vfs::Off; QTest::newRow("Vfs::Off") << Vfs::Off;
QTest::newRow("Vfs::WithSuffix") << Vfs::WithSuffix; QTest::newRow("Vfs::WithSuffix") << Vfs::WithSuffix;
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
if (isVfsPluginAvailable(Vfs::WindowsCfApi))
{
QTest::newRow("Vfs::WindowsCfApi") << Vfs::WindowsCfApi; QTest::newRow("Vfs::WindowsCfApi") << Vfs::WindowsCfApi;
} else {
QWARN("Skipping Vfs::WindowsCfApi");
}
#endif #endif
} }
@ -888,7 +894,7 @@ private slots:
if (vfsMode != Vfs::Off) if (vfsMode != Vfs::Off)
{ {
auto vfs = QSharedPointer<Vfs>(createVfsFromPlugin(Vfs::WithSuffix).release()); auto vfs = QSharedPointer<Vfs>(createVfsFromPlugin(vfsMode).release());
QVERIFY(vfs); QVERIFY(vfs);
fakeFolder.switchToVfs(vfs); fakeFolder.switchToVfs(vfs);
fakeFolder.syncJournal().internalPinStates().setForPath("", PinState::OnlineOnly); fakeFolder.syncJournal().internalPinStates().setForPath("", PinState::OnlineOnly);