diff -r 427125ac6cb8 -r 7eb70891911c vmbx/vmbxengine/tsrc/ut_vmbxengine/src/main.cpp --- a/vmbx/vmbxengine/tsrc/ut_vmbxengine/src/main.cpp Thu May 27 13:23:05 2010 +0300 +++ b/vmbx/vmbxengine/tsrc/ut_vmbxengine/src/main.cpp Fri Jun 11 14:07:16 2010 +0300 @@ -1,19 +1,3 @@ -/* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ #include #include #include @@ -24,21 +8,22 @@ int main(int argc, char *argv[]) { qDebug("main() IN"); - CTrapCleanup* cleanup = CTrapCleanup::New(); - QApplication app(argc, argv); +// CTrapCleanup* cleanup = CTrapCleanup::New(); + QCoreApplication app(argc, argv); qDebug("testing start..."); // API tester - Ut_VmbxEngine tc1; + int result = -1; char *pass[3]; pass[0] = argv[0]; pass[1] = "-o"; + + Ut_VmbxEngine tc1; pass[2] = "c:\\logs\\vmbx\\ut_vmbxengine.txt"; - int result = -1; result = QTest::qExec(&tc1, 3, pass); qDebug("ut_vmbxengine result=%d", result); - + Ut_PbkStore tc2; pass[2] = "c:\\logs\\vmbx\\ut_pbkstore.txt"; result = QTest::qExec(&tc2, 3, pass); @@ -53,8 +38,8 @@ qDebug("testing end..."); qDebug("main() OUT"); - delete cleanup; - cleanup = NULL; +// delete cleanup; +// cleanup = NULL; return result; }