kerneltest/e32test/heap/t_heap.cpp
branchRCL_3
changeset 62 4a8fed1c0ef6
parent 0 a41df078684a
child 109 b3a1d9898418
--- a/kerneltest/e32test/heap/t_heap.cpp	Tue Feb 02 01:24:03 2010 +0200
+++ b/kerneltest/e32test/heap/t_heap.cpp	Sat Feb 20 00:10:51 2010 +0200
@@ -529,7 +529,12 @@
 	for(TInt aSize2=(TInt)pHeap->AllocLen(aCell); aSize2>=0; aSize2--)
 		{
 		test(pHeap->ReAlloc(aCell, aSize2)!=NULL);
-		test(((TInt)pHeap->AllocLen(aCell)>=aSize2)&&((TInt)pHeap->AllocLen(aCell)<=aSize2+KMinFreeSize));
+
+		test((TInt)pHeap->AllocLen(aCell)>=aSize2);		
+
+		TInt aTmpSize2 = Max(_ALIGN_UP(aSize2 + RHeap::EAllocCellSize, KAlign), KMinFreeSize);
+
+		test((TInt)pHeap->AllocLen(aCell)<=aTmpSize2+KMinFreeSize);		
 		}
   
 	pHeap->Check();