kerneltest/e32test/demandpaging/t_datapaging.cpp
changeset 135 5e441a173c63
parent 132 e4a7b1cbe40c
child 293 0659d0e1a03c
equal deleted inserted replaced
134:95847726fe57 135:5e441a173c63
    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 		{