systemhealthmanagement/systemhealthmgr/test/tsysmon/src/tsysmon_app_startupregeioffailstart1.cpp
branchRCL_3
changeset 22 8cb079868133
parent 21 ccb4f6b3db21
equal deleted inserted replaced
21:ccb4f6b3db21 22:8cb079868133
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    18  @test
    18  @test
    19  @internalComponent - Internal Symbian test code   
    19  @internalComponent - Internal Symbian test code   
    20 */
    20 */
    21 
    21 
    22 #include "sysmontesthelper.h"
    22 #include "sysmontesthelper.h"
    23 #include <e32property.h>
       
    24 
       
    25 const TUint32 KRestartExeCount = 44;
       
    26 
    23 
    27 LOCAL_C TInt MainL()
    24 LOCAL_C TInt MainL()
    28     {
    25     {
    29     TInt err = RProperty::Define(KTestSysMon, KRestartExeCount, RProperty::EInt);
       
    30     RDebug::Printf("Defining P&S key with key %d returns with err %d", err, KRestartExeCount);
       
    31     TInt runCount = 0;
    26     TInt runCount = 0;
    32     CCommandLineArguments* args = CCommandLineArguments::NewLC();
    27     CCommandLineArguments* args = CCommandLineArguments::NewLC();
    33     runCount = CSysMonTestHelper::ReadRunCountL(args->Arg(0));
    28     runCount = CSysMonTestHelper::ReadRunCountL(args->Arg(0));
    34     CSysMonTestHelper::IncrementRunCountL(args->Arg(0));
    29     CSysMonTestHelper::IncrementRunCountL(args->Arg(0));
    35     
    30