messagingfw/msgtestfw/TestCases/ScriptedTestCases/Capabilities/Cap_EMsvSetFailure.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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  EMsvSetFailure
       
    18 
       
    19 //******************************************
       
    20 // To call EMsvSetFailure we now need the same capabilities as the message server (Read/Write Device Data, 
       
    21 // Protected Server, Network Control, Network Services, Local Services and Read 
       
    22 // User Data). The SID doe not matter.
       
    23 // Note It used to be that we did not need any capabilities to call EMsvSetFailure.
       
    24 // Likewise, the SID did not matter either. This call always succeeded back then.
       
    25 //******************************************
       
    26 
       
    27 PRINT Running  EMsvSetFailure : Read Caps = 0000e530. Same SID. Should Pass.
       
    28 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    29 
       
    30 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    31 
       
    32 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 0000e530 -SID 101F7776 C:\sys\bin\SendProxyServer.exe
       
    33 
       
    34 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvSetFailurePass.script
       
    35 
       
    36 DELAY 3000
       
    37 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    38 
       
    39 
       
    40 //******************************************
       
    41 
       
    42 PRINT Running  EMsvSetFailure : Read Caps = 00000000. Same SID. Should Fail.
       
    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 101F7776 C:\sys\bin\SendProxyServer.exe
       
    48 
       
    49 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvSetFailureFail.script
       
    50 
       
    51 DELAY 3000
       
    52 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    53 
       
    54 //******************************************
       
    55 
       
    56 PRINT Running  EMsvSetFailure : Read Caps = 0000e530. Different SID. Should Pass.
       
    57 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    58 
       
    59 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    60 
       
    61 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 0000e530 -SID 101F7780 C:\sys\bin\SendProxyServer.exe
       
    62 
       
    63 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvSetFailurePass.script
       
    64 
       
    65 DELAY 3000
       
    66 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script