systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_restartfail.script
//
// 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:
//
//
//! @file
//! @SYMTestSuiteName APPFWK-SYSMON
//
//
LOAD_SERVER tsysmon_server
//
//! @SYMTestCaseID DEVSRVS-SHMA-SYSMON-0040
//! @SYMPREQ PREQ1089 PREQ1871
//! @SYMREQ REQ6599 REQ9457
//! @SYMTestType CIT
//! @SYMTestPriority Critical
//! @SYMTestCaseDependencies appfwk-sysmon-0040_<emulator|hardware>0.rsc must be used in place of SSCForStartupMode0.rsc
//! @SYMTestCaseDesc Trigger a system restart, fail a process ('EIgnoreOnFailure' policy)
//! @SYMTestActions Register a process with the 'ERestartOS' failure policy and retry count of 0.
//! Register a second process with the 'EIgnoreOnFailure' failure policy and retry count of 1. This process will write to a file to indicate the number of times it has been run.
//! Fail the first process then immediately fail the second process.
//! @SYMTestExpectedResults The second process is not restarted. The file written to will indicate only 1 run of the second process.
//
START_TESTCASE DEVSRVS-SHMA-SYSMON-0040
RUN_TEST_STEP 100 tsysmon_server RunCountCheck z:\shmatest\configs\tsysmon.ini APPFWK-SYSMON-0040
END_TESTCASE DEVSRVS-SHMA-SYSMON-0040