|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // |
|
17 //! @file |
|
18 //! @SYMTestSuiteName APPFWK-SYSMON |
|
19 // |
|
20 |
|
21 // |
|
22 LOAD_SERVER tsysmon_server |
|
23 // |
|
24 |
|
25 //! @SYMTestCaseID DEVSRVS-SHMA-SYSMON-0026 |
|
26 //! @SYMPREQ PREQ1089 PREQ1871 |
|
27 //! @SYMREQ REQ6595 REQ6597 REQ9457 |
|
28 //! @SYMTestType CIT |
|
29 //! @SYMTestPriority Critical |
|
30 //! @SYMTestCaseDependencies |
|
31 //! @SYMTestCaseDesc Register a process for monitoring, with 'ERestartOSWithMode' policy, with all capabilities except PowerMgmnt |
|
32 //! @SYMTestActions The process to be registered must be running. The process to register the monitoring must have all PlatSec capabilities except PowerMgmnt. |
|
33 //! Open a connection to the SysMon process. (This will return 'KErrNone'.) |
|
34 //! Attempt to register the process with the 'ERestartOSWithMode' policy. |
|
35 //! @SYMTestExpectedResults The attempt to register the process returns 'KErrPermissionDenied'. |
|
36 // |
|
37 START_TESTCASE DEVSRVS-SHMA-SYSMON-0026 |
|
38 RUN_PROGRAM 100 setcap tsysmon_app_register.exe FFFFFFFA sysmontest_register_all-powermgmt.exe |
|
39 RUN_TEST_STEP 100 tsysmon_server Register z:\shmatest\configs\tsysmon.ini APPFWK-SYSMON-0026 |
|
40 END_TESTCASE DEVSRVS-SHMA-SYSMON-0026 |