kerneltest/e32test/heap/t_heap.cpp
branchCompilerCompatibility
changeset 77 c4d65d91ad0c
parent 62 4a8fed1c0ef6
child 109 b3a1d9898418
--- a/kerneltest/e32test/heap/t_heap.cpp	Mon Mar 08 11:57:08 2010 +0000
+++ b/kerneltest/e32test/heap/t_heap.cpp	Sun Mar 14 13:15:32 2010 +0000
@@ -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();