--- a/kerneltest/e32test/demandpaging/t_datapaging.cpp Thu Aug 19 11:14:22 2010 +0300
+++ b/kerneltest/e32test/demandpaging/t_datapaging.cpp Tue Aug 31 16:34:26 2010 +0300
@@ -38,7 +38,7 @@
#include <e32msgqueue.h>
#include <e32atomics.h>
#include <e32math.h>
-
+#include <f32file.h>
#include "t_dpcmn.h"
#include "../mmu/mmudetect.h"
#include "../mmu/d_memorytest.h"
@@ -1202,6 +1202,17 @@
test.Title();
test_KErrNone(GetGlobalPolicies());
+ _LIT(KFileName,"Z:\\Test\\not_data_paged.txt");
+ RFs fs;
+ RFile file;
+ TInt error;
+ test(KErrNone == fs.Connect());
+ error = file.Open(fs, KFileName, EFileRead);
+ TBool isFilePresent = (error == KErrNone);
+ file.Close();
+ fs.Close();
+ test(gDataPagingSupported == !isFilePresent);
+
test.Start(_L("Test HAL APIs"));
TestHal();