Fixed qlibrary unittest to work on mac
authorKurt Korbatits <kurt.korbatits@nokia.com>
Thu, 9 Feb 2012 02:55:30 +0000 (12:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Feb 2012 02:02:07 +0000 (03:02 +0100)
- 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>
tests/auto/corelib/plugin/qlibrary/tst/tst.pro
tests/auto/corelib/plugin/qlibrary/tst_qlibrary.cpp

index 0992ad8..ae6cf97 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG += testcase
+CONFIG -= app_bundle
 TARGET = ../tst_qlibrary
 QT = core testlib
 SOURCES = ../tst_qlibrary.cpp
index cff98de..efbc898 100644 (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());