--- a/kerneltest/e32test/demandpaging/t_datapaging.cpp Mon May 24 18:38:55 2010 +0100
+++ b/kerneltest/e32test/demandpaging/t_datapaging.cpp Mon May 24 18:45:46 2010 +0100
@@ -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();