Skip to content

Commit

Permalink
Add QEXPECT_FAIL to TestPermissions.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed May 6, 2024
1 parent 79d933e commit df8665a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/testpermissions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<QString>(fakeFolder.localPath() + QStringLiteral("/testFolder")).toStdWString());
QVERIFY(testFolderStatus.permissions() & std::filesystem::perms::owner_read);
Expand Down

0 comments on commit df8665a

Please sign in to comment.