equal
deleted
inserted
replaced
21 #include <e32test.h> |
21 #include <e32test.h> |
22 #include <e32hal.h> |
22 #include <e32hal.h> |
23 #include <f32dbg.h> |
23 #include <f32dbg.h> |
24 #include "t_server.h" |
24 #include "t_server.h" |
25 #include "t_chlffs.h" |
25 #include "t_chlffs.h" |
26 #include "f32_test_utils.h" |
|
27 |
|
28 using namespace F32_Test_Utils; |
|
29 |
26 |
30 #ifdef __WINS__ |
27 #ifdef __WINS__ |
31 #define WIN32_LEAN_AND_MEAN |
28 #define WIN32_LEAN_AND_MEAN |
32 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union |
29 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union |
33 #include <windows.h> |
30 #include <windows.h> |
345 GLDEF_C void CallTestsL() |
342 GLDEF_C void CallTestsL() |
346 // |
343 // |
347 // Call tests that may leave |
344 // Call tests that may leave |
348 // |
345 // |
349 { |
346 { |
350 if (Is_SimulatedSystemDrive(TheFs, CurrentDrive())) |
347 |
351 { |
348 #ifdef __WINS__ |
352 // These tests try to create a huge file to fill up the drive. |
349 // These tests try to create a huge file to fill up the drive. |
353 // This fails on WINS with drives with > 1/2G free because |
350 // This fails on WINS with drives with > 1/2G free because |
354 // RFile::SetSize() (among other things) only takes a TInt. |
351 // RFile::SetSize() (among other things) only takes a TInt. |
355 test.Printf(_L("Skipping B_OPEN on PlatSim/Emulator drive %C:\n"), gSessionPath[0]); |
352 // |
|
353 if (gSessionPath.Left(1).CompareF(_L("C")) == 0) |
356 return; |
354 return; |
357 } |
355 #endif |
358 |
|
359 CreateTestDirectory(_L("\\B_OPEN\\")); |
356 CreateTestDirectory(_L("\\B_OPEN\\")); |
360 InitTest(); |
357 InitTest(); |
361 testOpenFiles(); |
358 testOpenFiles(); |
362 Cleanup(); |
359 Cleanup(); |
363 } |
360 } |