diff -r 741dcdf88ba9 -r c4d65d91ad0c kerneltest/e32test/heap/t_heap.cpp --- 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();