diff -r ff5437e4337c -r 48e57fb1237e kerneltest/e32test/secure/t_suser.cpp --- a/kerneltest/e32test/secure/t_suser.cpp Wed Oct 06 17:13:14 2010 +0100 +++ b/kerneltest/e32test/secure/t_suser.cpp Mon Oct 11 17:54:41 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of the License "Eclipse Public License v1.0" @@ -44,11 +44,14 @@ #include #include #include +#include "testexclusions.h" LOCAL_D RTest test(_L("T_SUSER")); _LIT(KSyncSemaphoreName,"T_SUSER-SyncSemaphore"); RSemaphore SyncSemaphore; +TBool gControllerShutdownDisabled = EFalse; +TInt gTestExclusions = 0; void SlaveWait() @@ -319,7 +322,9 @@ ETestProcessSetCurrencySymbol, ETestProcessAddEventESwitchOff, ETestProcessAddEventECaseOpen, - ETestProcessAddEventECaseClose + ETestProcessAddEventECaseClose, + ETestProcessPowerHalTestMode, + ETestProcessGetTestExclusions }; #include "testprocess.h" @@ -532,6 +537,16 @@ return UserSvr::AddEvent(event); } + case ETestProcessPowerHalTestMode: + { + return UserSvr::HalFunction(EHalGroupPower, EPowerHalPowerManagerTestMode, (TAny*)KDisableControllerShutdown, NULL); + } + + case ETestProcessGetTestExclusions: + { + return GetTestExclusionSettings(gTestExclusions); + } + default: User::Panic(_L("T_SUSER"),1); } @@ -822,6 +837,60 @@ TUint KTestUid = 0x87654321; +void GetTestExclusions() + { + RTestProcess process; + TRequestStatus logonStatus; + + test.Start(_L("Get Test exclusions")); + TInt caps = 1u<