systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_regselferoswmcapsnopm.script
changeset 0 4e1aa6a622a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_regselferoswmcapsnopm.script	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,40 @@
+//
+// 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-0029
+//! @SYMPREQ 			PREQ1089 PREQ1871
+//! @SYMREQ			REQ6595 REQ6597 REQ9457
+//! @SYMTestType		CIT
+//! @SYMTestPriority		Critical
+//! @SYMTestCaseDependencies
+//! @SYMTestCaseDesc	A process registers itself for monitoring, with 'ERestartOSWithMode' policy, with all capabilities except PowerMgmnt
+//! @SYMTestActions		The process must have all PlatSec capabilities except PowerMgmnt.
+//! Open a connection to the SysMon process. (This will return 'KErrNone'.)
+//! Attempt to self-register the process with the 'ERestartOSWithMode' policy.
+//! @SYMTestExpectedResults 	The attempt to self-register returns 'KErrPermissionDenied'.
+//
+START_TESTCASE DEVSRVS-SHMA-SYSMON-0029
+RUN_PROGRAM 100 setcap tsysmon_app_selfregister.exe FFFFFFFA sysmontest_selfregister_all-powermgmt.exe
+RUN_TEST_STEP 100 tsysmon_server Register z:\shmatest\configs\tsysmon.ini APPFWK-SYSMON-0029
+END_TESTCASE DEVSRVS-SHMA-SYSMON-0029
\ No newline at end of file