diff -r 31ea0f8e3c99 -r 5af6c74cd793 kerneltest/f32test/server/b_open.cpp --- a/kerneltest/f32test/server/b_open.cpp Thu Jun 10 11:48:01 2010 +0100 +++ b/kerneltest/f32test/server/b_open.cpp Wed Jun 23 11:59:44 2010 +0100 @@ -23,6 +23,9 @@ #include #include "t_server.h" #include "t_chlffs.h" +#include "f32_test_utils.h" + +using namespace F32_Test_Utils; #ifdef __WINS__ #define WIN32_LEAN_AND_MEAN @@ -344,15 +347,15 @@ // Call tests that may leave // { + if (Is_SimulatedSystemDrive(TheFs, CurrentDrive())) + { + // These tests try to create a huge file to fill up the drive. + // This fails on WINS with drives with > 1/2G free because + // RFile::SetSize() (among other things) only takes a TInt. + test.Printf(_L("Skipping B_OPEN on PlatSim/Emulator drive %C:\n"), gSessionPath[0]); + return; + } -#ifdef __WINS__ -// These tests try to create a huge file to fill up the drive. -// This fails on WINS with drives with > 1/2G free because -// RFile::SetSize() (among other things) only takes a TInt. -// - if (gSessionPath.Left(1).CompareF(_L("C")) == 0) - return; -#endif CreateTestDirectory(_L("\\B_OPEN\\")); InitTest(); testOpenFiles();