persistentstorage/sql/TEST/t_sqloom3.cpp
changeset 17 55f2396f6d25
parent 0 08ec8eefde2f
equal deleted inserted replaced
15:3eacc0623088 17:55f2396f6d25
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    55 			if(aExpectedError != KErrAlreadyExists)
    55 			if(aExpectedError != KErrAlreadyExists)
    56 				{
    56 				{
    57 				(void)RSqlDatabase::Delete(aDbFileName);
    57 				(void)RSqlDatabase::Delete(aDbFileName);
    58 				}
    58 				}
    59 			TInt err = KErrNone;
    59 			TInt err = KErrNone;
    60 			TInt failingAllocationNo = 0;
    60 			TInt failingAllocationNo = 0;//the real exit point of the OOM test. allocationNo is set maxAllocationNo times.
    61 			TInt allocationNo = 0;
    61 			TInt allocationNo = 0;
    62 			TInt maxAllocationNo = TheOomTestType[i] == EServerSideTest ? KDoCreateDatabaseOomTestAllocLimitServer : KDoCreateDatabaseOomTestAllocLimitClient;
    62 			TInt maxAllocationNo = TheOomTestType[i] == EServerSideTest ? KDoCreateDatabaseOomTestAllocLimitServer : KDoCreateDatabaseOomTestAllocLimitClient;
    63 			while(allocationNo < maxAllocationNo)
    63 			while(allocationNo < maxAllocationNo)
    64 				{
    64 				{
    65 				MarkHandles();
    65 				MarkHandles();