kerneltest/e32test/demandpaging/t_datapaging.cpp
branchRCL_3
changeset 256 c1f20ce4abcf
parent 110 c734af59ce98
child 257 3e88ff8f41d5
equal deleted inserted replaced
249:a179b74831c9 256:c1f20ce4abcf
    36 #include <e32panic.h>
    36 #include <e32panic.h>
    37 #include "u32std.h"
    37 #include "u32std.h"
    38 #include <e32msgqueue.h>
    38 #include <e32msgqueue.h>
    39 #include <e32atomics.h>
    39 #include <e32atomics.h>
    40 #include <e32math.h>
    40 #include <e32math.h>
    41 
    41 #include <f32file.h>
    42 #include "t_dpcmn.h"
    42 #include "t_dpcmn.h"
    43 #include "../mmu/mmudetect.h"
    43 #include "../mmu/mmudetect.h"
    44 #include "../mmu/d_memorytest.h"
    44 #include "../mmu/d_memorytest.h"
    45 #include "../mmu/paging_info.h"
    45 #include "../mmu/paging_info.h"
    46 
    46 
  1200 		return RunSoakProcess();
  1200 		return RunSoakProcess();
  1201 	
  1201 	
  1202 	test.Title();
  1202 	test.Title();
  1203 	test_KErrNone(GetGlobalPolicies());
  1203 	test_KErrNone(GetGlobalPolicies());
  1204 
  1204 
       
  1205 	_LIT(KFileName,"Z:\\Test\\not_data_paged.txt");
       
  1206 	RFs fs;
       
  1207 	RFile file;
       
  1208 	TInt error;
       
  1209 	test(KErrNone == fs.Connect());
       
  1210 	error = file.Open(fs, KFileName, EFileRead);
       
  1211 	TBool isFilePresent = (error == KErrNone);
       
  1212 	file.Close();
       
  1213 	fs.Close();
       
  1214 	test(gDataPagingSupported == !isFilePresent);
       
  1215 
  1205 	test.Start(_L("Test HAL APIs"));
  1216 	test.Start(_L("Test HAL APIs"));
  1206 	TestHal();
  1217 	TestHal();
  1207 
  1218 
  1208 	if (gDataPagingSupported)
  1219 	if (gDataPagingSupported)
  1209 		{
  1220 		{