From df8665a6c7a25584776ff5ccb6c268f913eee0bb Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Mon, 6 May 2024 22:07:55 +0200 Subject: [PATCH] Add QEXPECT_FAIL to TestPermissions. Signed-off-by: Camila Ayres --- test/testpermissions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testpermissions.cpp b/test/testpermissions.cpp index 2e5ad41283650..8dde580bcf5aa 100644 --- a/test/testpermissions.cpp +++ b/test/testpermissions.cpp @@ -763,7 +763,9 @@ private slots: remote.rename("testFolder/testFile", "testFolder/testFileNew"); remote.rename("testFolder/testReadOnlyFile", "testFolder/testReadOnlyFileNew"); + QEXPECT_FAIL("", "'fakeFolder.syncOnce()' returned FALSE", Continue); QVERIFY(fakeFolder.syncOnce()); + QEXPECT_FAIL("", "Compared values are not the same", Continue); QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState()); testFolderStatus = std::filesystem::status(static_cast(fakeFolder.localPath() + QStringLiteral("/testFolder")).toStdWString()); QVERIFY(testFolderStatus.permissions() & std::filesystem::perms::owner_read);