kerneltest/e32test/power/t_power.cpp
changeset 286 48e57fb1237e
parent 33 0173bcd7697c
--- a/kerneltest/e32test/power/t_power.cpp	Wed Oct 06 17:13:14 2010 +0100
+++ b/kerneltest/e32test/power/t_power.cpp	Mon Oct 11 17:54:41 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2002-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"
@@ -41,6 +41,7 @@
 #include <f32file.h>
 #include <e32ldr.h>
 #include <e32ldr_private.h>
+#include "testexclusions.h"
 
 LOCAL_D RTest test(_L(" T_POWER "));
 
@@ -55,6 +56,14 @@
 void PowerTests()
 	{
 	test.Next(_L("test PowerDown()"));
+	
+	TInt testExclusions = 0;
+	test_KErrNone(GetTestExclusionSettings(testExclusions));
+	
+	if (testExclusions & KDisableControllerShutdown)
+		{
+		UserSvr::HalFunction(EHalGroupPower, EPowerHalPowerManagerTestMode, (TAny*)KDisableControllerShutdown, NULL);
+		}
 
 	TInt r = Power::PowerDown();
 	test (r == KErrNotReady);