Commit 106e505d authored by mardy's avatar mardy

[qtcontacts-sqlite] Fix aggregation test. Contributes to MER#1853

If the database has been left dirty by some other test, this test will
fail. So, cleanup the DB before running this test.
parent e4113539
......@@ -155,6 +155,12 @@ tst_Aggregation::~tst_Aggregation()
void tst_Aggregation::initTestCase()
{
registerIdType();
/* Make sure the DB is empty */
QContactDetailFilter allSyncTargets;
setFilterDetail<QContactSyncTarget>(allSyncTargets, QContactSyncTarget::FieldSyncTarget);
m_cm->removeContacts(m_cm->contactIds(allSyncTargets));
waitForSignalPropagation();
}
void tst_Aggregation::init()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment