messagingfw/msgtestfw/TestCases/ScriptedTestCases/Capabilities/Cap_EMsvSlotAvailable.script
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     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 PRINT Running  EMsvSlotAvailable
       
    18 
       
    19 //******************************************
       
    20 // We don't need any capabilities to call EMsvSlotAvailable.
       
    21 // Likewise, the SID does not matter either. This call always succeeds.
       
    22 //******************************************
       
    23 
       
    24 PRINT Running  EMsvSlotAvailable : Read Caps = 0. Same SID. Should Pass.
       
    25 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    26 
       
    27 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    28 
       
    29 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe
       
    30 
       
    31 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvSlotAvailable.script
       
    32 
       
    33 // Need delay to allow SendProxyServer shutting down
       
    34 DELAY 3000
       
    35 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    36 
       
    37 //******************************************
       
    38 // We don't need any capabilities to call EMsvSlotAvailable.
       
    39 // Likewise, the SID does not matter either. This call always succeeds.
       
    40 //******************************************
       
    41 
       
    42 PRINT Running  EMsvSlotAvailable : Read Caps = 0. Different SID. Should Pass.
       
    43 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    44 
       
    45 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    46 
       
    47 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe
       
    48 
       
    49 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvSlotAvailable.script
       
    50 
       
    51 // Need delay to allow SendProxyServer shutting down
       
    52 DELAY 3000
       
    53 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script