diff -r d57b86b1867a -r dc268b18d709 kerneltest/e32test/secure/t_platsecconfig.cpp --- a/kerneltest/e32test/secure/t_platsecconfig.cpp Mon Sep 13 15:16:07 2010 +0100 +++ b/kerneltest/e32test/secure/t_platsecconfig.cpp Wed Sep 22 10:53:45 2010 +0100 @@ -235,7 +235,9 @@ { CTrapCleanup* cleanupStack = CTrapCleanup::New(); if(!cleanupStack) + { return KErrNoMemory; + } TRAPD(leaveError,DoStartServer()) delete cleanupStack; return leaveError; @@ -272,7 +274,9 @@ { TInt i; for(i=0; i CapabilityNameBuffer; @@ -293,9 +297,13 @@ if(allCaps.HasCapability((TCapability)i)) { if(i&1) + { odd = EFalse; + } else + { even = EFalse; + } } continue; } @@ -305,11 +313,17 @@ CapabilityNameBuffer.Append((TChar)' '); } if(!CapabilityNameBuffer.Length()) + { CapabilityNameBuffer.Append(_L8("NONE")); + } if(even) + { CapabilityNameBuffer.Append(_L8("(These are all EVEN numbered capabilities)")); + } if(odd) + { CapabilityNameBuffer.Append(_L8("(These are all ODD numbered capabilities)")); + } return CapabilityNameBuffer.Expand(); } @@ -343,10 +357,16 @@ TCapabilitySet notEnforced; notEnforced.SetEmpty(); for(TInt i=0; i IMPORT_C void dummyExport(); @@ -446,6 +490,9 @@ test.Next(_L("Test PlatSecEnforcement")); TestPlatSecEnforcement(); + test.Next(_L("Test PlatSecDiagnostic()")); + TestPlatSecDiagnostic(); + test.Next(_L("Closing server session")); Session.Send(CTestSession::EShutdown); Session.Close(); @@ -474,7 +521,9 @@ timer.After(timerStat,20*1000000); User::WaitForRequest(timerStat,keyStat); if(keyStat!=KRequestPending) + { (void)test.Console()->KeyCode(); + } timer.Cancel(); test.Console()->ReadCancel(); User::WaitForAnyRequest();