зеркало из https://github.com/nextcloud/desktop.git
fix ignored return values in windows specific code
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Родитель
5b2a691f4c
Коммит
151d17aed4
|
@ -984,8 +984,8 @@ private slots:
|
|||
QCOMPARE(*vfs->availability("local"), VfsItemAvailability::Mixed);
|
||||
QCOMPARE(*vfs->availability("online"), VfsItemAvailability::Mixed);
|
||||
|
||||
vfs->setPinState("local", PinState::AlwaysLocal);
|
||||
vfs->setPinState("online", PinState::OnlineOnly);
|
||||
QVERIFY(vfs->setPinState("local", PinState::AlwaysLocal));
|
||||
QVERIFY(vfs->setPinState("online", PinState::OnlineOnly));
|
||||
QVERIFY(fakeFolder.syncOnce());
|
||||
|
||||
QCOMPARE(*vfs->availability("online"), VfsItemAvailability::OnlineOnly);
|
||||
|
@ -1061,13 +1061,13 @@ private slots:
|
|||
QCOMPARE(*vfs->pinState("onlinerenamed2/file1rename"), PinState::OnlineOnly);
|
||||
|
||||
// When a file is hydrated or dehydrated due to pin state it retains its pin state
|
||||
vfs->setPinState("onlinerenamed2/file1rename", PinState::AlwaysLocal);
|
||||
QVERIFY(vfs->setPinState("onlinerenamed2/file1rename", PinState::AlwaysLocal));
|
||||
QVERIFY(fakeFolder.syncOnce());
|
||||
QVERIFY(fakeFolder.currentLocalState().find("onlinerenamed2/file1rename"));
|
||||
QCOMPARE(*vfs->pinState("onlinerenamed2/file1rename"), PinState::AlwaysLocal);
|
||||
|
||||
vfs->setPinState("onlinerenamed2", PinState::Unspecified);
|
||||
vfs->setPinState("onlinerenamed2/file1rename", PinState::OnlineOnly);
|
||||
QVERIFY(vfs->setPinState("onlinerenamed2", PinState::Unspecified));
|
||||
QVERIFY(vfs->setPinState("onlinerenamed2/file1rename", PinState::OnlineOnly));
|
||||
QVERIFY(fakeFolder.syncOnce());
|
||||
|
||||
CFVERIFY_VIRTUAL(fakeFolder, "onlinerenamed2/file1rename");
|
||||
|
|
Загрузка…
Ссылка в новой задаче