systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_restartos.script
// Copyright (c) 2010 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:
//
PRINT Run RestartOS test
LOAD_SUITE tsysmon_server
START_TESTCASE DEVSRVS-SHMA-SYSMON-0035
//! @SYMTestCaseID DEVSRVS-SHMA-SYSMON-0035
//! @SYMPREQ
//! @SYMREQ
//! @SYMTestType UT
//! @SYMTestPriority Critical
//! @SYMTestStatus Implemented
//! @SYMTestCaseDesc A process with ERestartOS recovery policy restarts the OS after retrying the specified number of times
//! @SYMTestActions 1. Start a process
//! 2. Call RSysMonSession::Monitor() using startupproperties for this process with EWaitForStart, retry count = 1,
//! and ERestartOS
//! 3. Kill the process
//! 4. Then the process restarts again and fails
//! 5. This will cause the OS to restart.
//! @SYMTestExpectedResults pass
RUN_TEST_STEP 100 tsysmon_server RestartOSStep
END_TESTCASE DEVSRVS-SHMA-SYSMON-0035
RUN_UTILS MakeReadWrite c:\testdata\runcounts\tsysmon_app_dontrendezvous.exe.txt
RUN_UTILS DeleteFile c:\testdata\runcounts\tsysmon_app_dontrendezvous.exe.txt