kerneltest/f32test/demandpaging/t_mmcpaging.cpp
branchGCC_SURGE
changeset 210 b592f7984442
parent 33 0173bcd7697c
equal deleted inserted replaced
209:6035754ebf88 210:b592f7984442
   348 
   348 
   349 	while (Testing)
   349 	while (Testing)
   350 		{
   350 		{
   351 		TInt r=UserSvr::HalFunction(EHalGroupVM,EVMHalFlushCache,0,0);
   351 		TInt r=UserSvr::HalFunction(EHalGroupVM,EVMHalFlushCache,0,0);
   352 		if (Random() & 1)
   352 		if (Random() & 1)
   353 			User::AfterHighRes(500+Random() & 2047);
   353 			User::AfterHighRes((500+Random()) & 2047);
   354 
   354 
   355 		if (r<0)
   355 		if (r<0)
   356 			{
   356 			{
   357 			GlobError=r;
   357 			GlobError=r;
   358 			PagedTrashCount=99;
   358 			PagedTrashCount=99;
   374 					{
   374 					{
   375 					trashBurst= (TBool) aUseTb;
   375 					trashBurst= (TBool) aUseTb;
   376 					}
   376 					}
   377 				PagedTrashCount++;
   377 				PagedTrashCount++;
   378 				if (RandomNo & 1)
   378 				if (RandomNo & 1)
   379 					User::AfterHighRes(500+Random() & 2047);
   379 					User::AfterHighRes((500+Random()) & 2047);
   380 				}
   380 				}
   381 			}
   381 			}
   382 	
   382 	
   383 		}
   383 		}
   384 	return(KErrNone);
   384 	return(KErrNone);