Move test for issue #1329 from t1.pl to new test system

This commit is contained in:
Olivier Goffart 2018-12-18 12:08:34 +01:00 committed by Kevin Ottens
parent a29320b18d
commit dfedb09fd8
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -41,6 +41,22 @@ private slots:
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
}
void issue1329()
{
FakeFolder fakeFolder{ FileInfo::A12_B12_C12_S12() };
fakeFolder.localModifier().remove("B");
QVERIFY(fakeFolder.syncOnce());
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
// Add a directory that was just removed in the previous sync:
fakeFolder.localModifier().mkdir("B");
fakeFolder.localModifier().insert("B/b1");
QVERIFY(fakeFolder.syncOnce());
QVERIFY(fakeFolder.currentRemoteState().find("B/b1"));
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
}
};
QTEST_GUILESS_MAIN(TestSyncDelete)