From 151d17aed4554971e3d223a5ba54856c1f8098ef Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 21 Feb 2023 22:16:10 +0100 Subject: [PATCH] fix ignored return values in windows specific code Signed-off-by: Matthieu Gallien --- test/testsynccfapi.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/testsynccfapi.cpp b/test/testsynccfapi.cpp index db32a5d85..4b06b6e15 100644 --- a/test/testsynccfapi.cpp +++ b/test/testsynccfapi.cpp @@ -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");