Skip to content

Commit

Permalink
tests: SyncAgentTest: Fix library reference for Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
martyone committed Jun 4, 2014
1 parent 0fdff6f commit f74db94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests_meego/SyncAgentTest.cpp
Expand Up @@ -67,7 +67,11 @@ void SyncAgentTest::releaseStorage( StoragePlugin* aStorage )
void SyncAgentTest::testSync()
{
createSyncAgent_t createSyncAgent = (createSyncAgent_t) QLibrary::resolve(
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
"libbuteosyncml.so", "createSyncAgent");
#else
"libbuteosyncml5.so", "createSyncAgent");
#endif
QVERIFY(NULL != createSyncAgent);
SyncAgent* agent = createSyncAgent(NULL);
QVERIFY(NULL != agent);
Expand Down Expand Up @@ -158,7 +162,11 @@ void SyncAgentTest::testSync()
QCOMPARE(agent->cleanUp(&config), false);

destroySyncAgent_t* destroySyncAgent =
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
(destroySyncAgent_t*) QLibrary::resolve("libbuteosyncml.so",
#else
(destroySyncAgent_t*) QLibrary::resolve("libbuteosyncml5.so",
#endif
"destroySyncAgent");
QVERIFY(NULL != destroySyncAgent);
destroySyncAgent(agent);
Expand Down

0 comments on commit f74db94

Please sign in to comment.