Fixed qlibrary unittest to work on mac

- Changed unload_after_implicit_load() to use full path
- Turned off app_bundle

Change-Id: Ibdf3ae0dc833d97eba64298715eb88c70408fff6
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
This commit is contained in:
Kurt Korbatits 2012-02-09 12:55:30 +10:00 committed by Qt by Nokia
parent c5618fd880
commit 6e3c4de94f
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
CONFIG += testcase
CONFIG -= app_bundle
TARGET = ../tst_qlibrary
QT = core testlib
SOURCES = ../tst_qlibrary.cpp

View File

@ -258,7 +258,7 @@ void tst_QLibrary::unload()
void tst_QLibrary::unload_after_implicit_load()
{
QLibrary library( "./mylib" );
QLibrary library( QCoreApplication::applicationDirPath() + "/mylib" );
QFunctionPointer p = library.resolve("mylibversion");
QVERIFY(p); // Check if it was loaded
QVERIFY(library.isLoaded());