|
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-0046 |
|
26 //! @SYMPREQ PREQ1089 |
|
27 //! @SYMTestType CIT |
|
28 //! @SYMTestPriority Critical |
|
29 //! @SYMTestCaseDependencies appfwk-sysmon-0046_<emulator|hardware>0.rsc must be used in place of SSCForStartupMode0.rsc |
|
30 //! @SYMTestCaseDesc Use the new startup configuration format to register for process monitoring, with 'ERestartOS' policy, have the process fail during startup. |
|
31 //! @SYMTestActions Create a SSC file which will contain an item for a test application with EStartupProcess2, EWaitForStart, retry count = 0, ERestartOS, and monitor = 1. The test application will be in the Critical Static section. |
|
32 //! The test application records a count in a file to check whether it is being loaded first time or second time. |
|
33 //! First time SysStart loads the test application; it should not rendezvous successfully, causing the system to restart. |
|
34 //! After restarting when SysStart loads the test process again it should succeed. |
|
35 //! A test-execute test should check this count value. |
|
36 //! @SYMTestExpectedResults The count value should be 2. |
|
37 // |
|
38 START_TESTCASE DEVSRVS-SHMA-SYSMON-0046 |
|
39 RUN_TEST_STEP 100 tsysmon_server RunCountCheck z:\shmatest\configs\tsysmon.ini APPFWK-SYSMON-0046 |
|
40 END_TESTCASE DEVSRVS-SHMA-SYSMON-0046 |