1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 // |
14 // |
15 |
15 |
16 PRINT Run SusAdaptionServerStep tests |
16 PRINT Run SusAdaptionServerStep tests |
17 |
17 |
18 //Set the server with SID of telephony(c32 process) to test the emergency call under OOM condition |
18 //Set the server with SID of telephony(c32 process) to test the emergency call under OOM condition |
19 RUN_PROGRAM -1 setcap tsus_ssmutilsrv.exe 0003FFFE -SID 10003D33 tsus_ssmutilsrv_WithC32_SID.exe |
19 RUN_PROGRAM -1 setcap tsus_ssmutilsrv.exe 00001134 -SID 101F7989 tsus_ssmutilsrv_WithC32_SID.exe |
20 |
20 |
21 |
21 |
22 LOAD_SUITE tsus_ssmutilsrv_WithC32_SID |
22 LOAD_SUITE tsus_ssmutilsrv_WithC32_SID |
23 |
23 |
24 START_TESTCASE DEVSRVS-SSMA-SUS-0011 |
24 START_TESTCASE DEVSRVS-SSMA-SUS-0011 |
34 //! 2.Under OOM conditions. |
34 //! 2.Under OOM conditions. |
35 //! 3.Allow priority client with telephony SID to make Emergencycall under OOM condition. |
35 //! 3.Allow priority client with telephony SID to make Emergencycall under OOM condition. |
36 //! 4.Test to set SetPriorityClient() from two diff client |
36 //! 4.Test to set SetPriorityClient() from two diff client |
37 //! 5.Normal client calling Activate/DeactivateRfForEmergencyCall Rf in OOM condition |
37 //! 5.Normal client calling Activate/DeactivateRfForEmergencyCall Rf in OOM condition |
38 //! 6.Multiple client performing Activate/DeactivateRfForEmergencyCall during OOM situation |
38 //! 6.Multiple client performing Activate/DeactivateRfForEmergencyCall during OOM situation |
|
39 //! 7.Iterate the OOM through Activate/DeactivateRfForEmergencyCall |
39 //! @SYMTestExpectedResults The test ends with the following results: |
40 //! @SYMTestExpectedResults The test ends with the following results: |
40 //! 1.No error is reported a new object is created and the process is set to ESystemCritical. |
41 //! 1.No error is reported a new object is created and the process is set to ESystemCritical. |
41 //! 2.Intermediate iterations finish with KErrNoMemory with successful one completing with KErrNone. Memory is not leaked in any iteration. |
42 //! 2.Intermediate iterations finish with KErrNoMemory with successful one completing with KErrNone. Memory is not leaked in any iteration. |
42 //! 3.Emergencycall allowed in OOM condition |
43 //! 3.Emergencycall allowed in OOM condition |
43 //! 4.Call to SetPriorityClient() with error KErrAlreadyExists fails from the second client |
44 //! 4.Call to SetPriorityClient() with error KErrAlreadyExists fails from the second client |
44 //! 5.Call fails with KErrNoMemory. |
45 //! 5.Call fails with KErrNoMemory. |
45 //! 6.Only Priority client will be able to perform Activate/DeactivateRfForEmergencyCall, for other client KErrNoMemory will be returned |
46 //! 6.Only Priority client will be able to perform Activate/DeactivateRfForEmergencyCall, for other client KErrNoMemory will be returned |
|
47 //! 7.Activate/DeactivateRfForEmergencyCall works fine. |
46 RUN_TEST_STEP 100 tsus_ssmutilsrv_WithC32_SID SusAdaptionServerStep |
48 RUN_TEST_STEP 100 tsus_ssmutilsrv_WithC32_SID SusAdaptionServerStep |
47 END_TESTCASE DEVSRVS-SSMA-SUS-0011 |
49 END_TESTCASE DEVSRVS-SSMA-SUS-0011 |