Skip to content

Commit

Permalink
[buteo-syncml] tests: Fix execution w/o -devel subpkg
Browse files Browse the repository at this point in the history
The library symlink with no version suffix only comes with the -devel
subpkg and so the test fails on resolving the library symbol when the
-devel subpkg is not installed.

Removing of "lib" prefix and ".so" suffix is not necessary but it is the
preferred usage so fixing all in one go.
  • Loading branch information
martyone committed Sep 10, 2014
1 parent 59abdf8 commit adefae1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests_meego/SyncAgentTest.cpp
Expand Up @@ -68,9 +68,9 @@ void SyncAgentTest::testSync()
{
createSyncAgent_t createSyncAgent = (createSyncAgent_t) QLibrary::resolve(
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
"libbuteosyncml.so", "createSyncAgent");
"buteosyncml", "0", "createSyncAgent");
#else
"libbuteosyncml5.so", "createSyncAgent");
"buteosyncml5", "0", "createSyncAgent");
#endif
QVERIFY(NULL != createSyncAgent);
SyncAgent* agent = createSyncAgent(NULL);
Expand Down Expand Up @@ -163,11 +163,11 @@ void SyncAgentTest::testSync()

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

0 comments on commit adefae1

Please sign in to comment.