mpengine/tsrc/unittest_mpmpxharvesterframeworkwrapper/src/unittest_mpmpxharvesterframeworkwrapper.cpp
changeset 29 8192e5b5c935
parent 22 ecf06a08d4d9
--- a/mpengine/tsrc/unittest_mpmpxharvesterframeworkwrapper/src/unittest_mpmpxharvesterframeworkwrapper.cpp	Fri May 14 15:49:53 2010 +0300
+++ b/mpengine/tsrc/unittest_mpmpxharvesterframeworkwrapper/src/unittest_mpmpxharvesterframeworkwrapper.cpp	Thu May 27 12:49:57 2010 +0300
@@ -16,8 +16,6 @@
 */
 
 #include <QSignalSpy>
-#include <hbapplication.h>
-#include <hbmainwindow.h>
 
 #include <mpxmedia.h>
 #include <mpxcollectionplaylist.h>
@@ -40,19 +38,19 @@
  */
 int main(int argc, char *argv[])
 {
-    HbApplication app(argc, argv);
-    HbMainWindow window;
-
     TestMpMpxHarvesterFrameworkWrapper tv;
 
-    char *pass[3];
-    pass[0] = argv[0];
-    pass[1] = "-o";
-    pass[2] = "c:\\data\\unittest_mpmpxharvesterframeworkwrapper.txt";
+    if ( argc > 1 ) {
+        return QTest::qExec( &tv, argc, argv);
+    }
+    else {
+        char *pass[3];
+        pass[0] = argv[0];
+        pass[1] = "-o";
+        pass[2] = "c:\\data\\unittest_mpmpxharvesterframeworkwrapper.txt";
 
-    int res = QTest::qExec(&tv, 3, pass);
-
-    return res;
+        return QTest::qExec(&tv, 3, pass);
+    }
 }
 
 TestMpMpxHarvesterFrameworkWrapper::TestMpMpxHarvesterFrameworkWrapper()