kerneltest/f32test/server/b_open.cpp
changeset 175 5af6c74cd793
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
148:31ea0f8e3c99 175:5af6c74cd793
    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;
    26 
    29 
    27 #ifdef __WINS__
    30 #ifdef __WINS__
    28 #define WIN32_LEAN_AND_MEAN
    31 #define WIN32_LEAN_AND_MEAN
    29 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union
    32 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union
    30 #include <windows.h>
    33 #include <windows.h>
   342 GLDEF_C void CallTestsL()
   345 GLDEF_C void CallTestsL()
   343 //
   346 //
   344 // Call tests that may leave
   347 // Call tests that may leave
   345 //
   348 //
   346 	{
   349 	{
   347 
   350     if (Is_SimulatedSystemDrive(TheFs, CurrentDrive()))
   348 #ifdef __WINS__
   351         {
   349 // These tests try to create a huge file to fill up the drive.
   352 		// These tests try to create a huge file to fill up the drive.
   350 // This fails on WINS with drives with > 1/2G free because
   353 		// This fails on WINS with drives with > 1/2G free because
   351 // RFile::SetSize() (among other things) only takes a TInt.
   354 		// RFile::SetSize() (among other things) only takes a TInt.
   352 //
   355 		test.Printf(_L("Skipping B_OPEN on PlatSim/Emulator drive %C:\n"), gSessionPath[0]);
   353 	if (gSessionPath.Left(1).CompareF(_L("C")) == 0)
       
   354 		return;
   356 		return;
   355 #endif
   357         }
       
   358 
   356 	CreateTestDirectory(_L("\\B_OPEN\\"));
   359 	CreateTestDirectory(_L("\\B_OPEN\\"));
   357 	InitTest();
   360 	InitTest();
   358 	testOpenFiles();
   361 	testOpenFiles();
   359 	Cleanup();
   362 	Cleanup();
   360 	}
   363 	}