systemhealthmanagement/systemhealthmgr/test/tsysmon/scripts/shmatest_sysmon_regselferoscapsnops.script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:53:00 +0200
changeset 0 4e1aa6a622a0
permissions -rw-r--r--
Revision: 201003

//
// 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-0024
//! @SYMPREQ 			PREQ1089 PREQ1871
//! @SYMREQ			REQ6596 REQ9457
//! @SYMTestType		CIT
//! @SYMTestPriority		Critical
//! @SYMTestCaseDependencies
//! @SYMTestCaseDesc	A process registers itself for monitoring, with 'ERestartOS' policy, with all capabilities except ProtServ
//! @SYMTestActions		The process must have all PlatSec capabilities except ProtServ.
//! Open a connection to the SysMon process. (This will return 'KErrNone'.)
//! Attempt to self-register with the 'ERestartOS' policy.
//! @SYMTestExpectedResults 	The attempt to self-register returns 'KErrPermissionDenied'
//
START_TESTCASE DEVSRVS-SHMA-SYSMON-0024
RUN_PROGRAM 100 setcap tsysmon_app_selfregister.exe FFFFFEFE sysmontest_selfregister_all-protserv.exe
RUN_TEST_STEP 100 tsysmon_server Register z:\shmatest\configs\tsysmon.ini APPFWK-SYSMON-0024
END_TESTCASE DEVSRVS-SHMA-SYSMON-0024