--- a/calendarui/tsrc/unittest_calencommonutils/src/main.cpp Mon Sep 20 12:44:39 2010 +0530
+++ b/calendarui/tsrc/unittest_calencommonutils/src/main.cpp Tue Oct 05 13:57:00 2010 +0530
@@ -23,33 +23,35 @@
#include "test_calenagendautils.h"
#include "test_calendateutils.h"
-int main(int argc, char *argv[])
-{
- HbApplication app(argc, argv);
-
- TestCalenDateUtils testDateUtils;
-
- char *args[3];
- args[0] = argv[0];
- args[1] = "-o";
- args[2] = "c:\\data\\TestCalenDateUtils.txt";
-
- int retDateUtils = QTest::qExec(&testDateUtils, 3, args);
-
-
- TestCalenAgendaUtils testAgendaUtils;
-
- args[2] = "c:\\data\\TestCalenAgendaUtils.txt";
-
- int retAgendaUtils = QTest::qExec(&testAgendaUtils, 3, args);
-
- // Core dump if HbIconLoader instance is not destroyed before the
- // application instance. HbIconLoader uses QCoreApplication::aboutToQuit()
- // signal to destroy itself. app.exec() where the signal is normally emitted
- // is not called here. So, invoking the signal explicitly.
- QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection);
-
- return (retDateUtils && retAgendaUtils);
-}
+//int main(int argc, char *argv[])
+//{
+// HbApplication app(argc, argv);
+//
+// TestCalenDateUtils testDateUtils;
+//
+// char *args[3];
+// args[0] = argv[0];
+// args[1] = "-o";
+// args[2] = "c:\\data\\TestCalenDateUtils.txt";
+//
+// int retDateUtils = QTest::qExec(&testDateUtils, 3, args);
+//
+//
+// TestCalenAgendaUtils testAgendaUtils;
+//
+// args[2] = "c:\\data\\TestCalenAgendaUtils.txt";
+//
+// int retAgendaUtils = QTest::qExec(&testAgendaUtils, 3, args);
+//
+// // Core dump if HbIconLoader instance is not destroyed before the
+// // application instance. HbIconLoader uses QCoreApplication::aboutToQuit()
+// // signal to destroy itself. app.exec() where the signal is normally emitted
+// // is not called here. So, invoking the signal explicitly.
+// QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection);
+//
+// return (retDateUtils && retAgendaUtils);
+//}
+
+QTEST_MAIN ( TestCalenDateUtils )
// End of file --Don't remove this.