diff -r 000000000000 -r bde4ae8d615e os/security/authorisation/userpromptservice/policies/test/tupspolicies/scripts/tpolicycacheoom.script --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/security/authorisation/userpromptservice/policies/test/tupspolicies/scripts/tpolicycacheoom.script Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,43 @@ +// +// Copyright (c) 2009 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" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +LOAD_SUITE tupspolicies +PRINT ---------------------------------------------------------- +PRINT tupspolicies: +PRINT User Prompt Service policy library OOM unit test +PRINT ---------------------------------------------------------- + +// Clean environment. Policy directory on system drive must not exist for the first tests +// to allow us to check that the library works if the path doesn't exist. +RUN_UTILS DELETEFILE c:\upsrefnotifier.txt +RUN_UTILS DELETEFILE c:\tups\tpolicies\policies\ups_01033000_01032001.rsc +RUN_UTILS DELETEFILE c:\tups\tpolicies\policies\ups_01034000_01032001.rsc +RUN_UTILS DELETEFILE c:\tups\tpolicies\policies\ups_01035000_01035001.rsc +RUN_UTILS DELETEFILE c:\tups\tpolicies\policies\ups_01036000_01036001.rsc +RUN_UTILS DELETEDIRECTORY c:\tups\tpolicies\policies\ + +//! @SYMTestCaseID SEC-UPS-POLICIES-CACHEOOM-0001 +//! @SYMTestCaseDesc OOM tests for policy cache +//! @SYMTestPriority High +//! @SYMTestActions Test policy cache with with OOM tests enabled. +//! @SYMTestExpectedResults No memory leaks. +//! @SYMDevelopedForRelease Oghma +START_TESTCASE SEC-UPS-POLICIES-CACHEOOM-0001 +RUN_TEST_STEP_RESULT 0 100 tupspolicies TEFUnit.CTestPlugins.TestCacheL z:\tups\tpolicies\scripts\policymatchoom.ini +END_TESTCASE SEC-UPS-POLICIES-CACHEOOM-0001 + +// Cleanup automated notifier response +RUN_UTILS DELETEFILE c:\upsrefnotifier.txt