--- 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();