diff -r 7d4490026038 -r 44f437012c90 persistentstorage/centralrepository/test/t_cenrep_defects.cpp --- a/persistentstorage/centralrepository/test/t_cenrep_defects.cpp Mon Sep 27 11:59:56 2010 +0100 +++ b/persistentstorage/centralrepository/test/t_cenrep_defects.cpp Tue Oct 19 16:26:13 2010 +0100 @@ -36,6 +36,11 @@ _LIT( KCentralRepositoryServerName, "Centralrepositorysrv"); +//Burst rate for __UHEAP_SETBURSTFAIL +#ifdef _DEBUG +const TInt KBurstRate = 20; +#endif + const TUid KUidDEF060843LRepository1 = { 0x00000001 }; const TUid KUidRep1 = { 0x00000100 }; const TUid KUidDEF053500LTestRepository = { 0x00000102 }; @@ -2457,7 +2462,7 @@ if(aOOMMode) { - __UHEAP_SETFAIL(RHeap::EFailNext, ++count); + __UHEAP_SETBURSTFAIL(RAllocator::EBurstFailNext, ++count, KBurstRate); } error = persist.MergeArray(change, deleted, KMergerTypes[i]); @@ -2465,7 +2470,7 @@ if (aOOMMode) { TEST(KErrNone == error || KErrNoMemory == error); - __UHEAP_SETFAIL(RHeap::ENone, 0); + __UHEAP_RESET; } else {