kerneltest/f32test/server/t_resize.cpp
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
equal deleted inserted replaced
43:c1f20ce4abcf 44:3e88ff8f41d5
    18 // This program must be run on a FAT formatted disk with at least 10Mb free.
    18 // This program must be run on a FAT formatted disk with at least 10Mb free.
    19 // RFile::SetSize(TInt aSize)
    19 // RFile::SetSize(TInt aSize)
    20 // 
    20 // 
    21 //
    21 //
    22 
    22 
    23 #define __E32TEST_EXTENSION__
       
    24 #include <e32test.h>
    23 #include <e32test.h>
    25 #include <f32file.h>
    24 #include <f32file.h>
    26 #include <hal.h>
    25 #include <hal.h>
    27 #include "t_server.h"
    26 #include "t_server.h"
    28 
    27 
    55 	test.Start(_L("Starting tests"));
    54 	test.Start(_L("Starting tests"));
    56 
    55 
    57 	test.Next(_L("Connecting to file server."));
    56 	test.Next(_L("Connecting to file server."));
    58 	TInt r;
    57 	TInt r;
    59 	r = TheFs.Connect();
    58 	r = TheFs.Connect();
    60 	test_KErrNone(r);
    59 	test(r == KErrNone);
    61 
    60 
    62 	if ( !gDriveToTest.IsLower() )
    61 	if ( !gDriveToTest.IsLower() )
    63 		{
    62 		{
    64 		gDriveToTest.LowerCase();
    63 		gDriveToTest.LowerCase();
    65 		}
    64 		}
   170 	TInt r;
   169 	TInt r;
   171 
   170 
   172 	TInt isFat, isValid;
   171 	TInt isFat, isValid;
   173     TInt machUid;
   172     TInt machUid;
   174     r=HAL::Get(HAL::EMachineUid,machUid);
   173     r=HAL::Get(HAL::EMachineUid,machUid);
   175     test_KErrNone(r);
   174     test(r==KErrNone);
   176 //	test.Printf(_L("machUid = %08x.\n"), machUid);
   175 //	test.Printf(_L("machUid = %08x.\n"), machUid);
   177 
   176 
   178 	TBuf<16> fsName;							// _?_ length
   177 	TBuf<16> fsName;							// _?_ length
   179         
   178         
   180     r = TheFs.FileSystemName(fsName, aDrive);
   179     r = TheFs.FileSystemName(fsName, aDrive);
   181     test_Value(r, r == KErrNone || r == KErrNotFound);
   180     test(r == KErrNone || r == KErrNotFound);
   182 	test.Printf(_L("fsName = \"%S\".\n"), &fsName);
   181 	test.Printf(_L("fsName = \"%S\".\n"), &fsName);
   183 
   182 
   184 	if (machUid == HAL::EMachineUid_Brutus)
   183 	if (machUid == HAL::EMachineUid_Brutus)
   185 		{
   184 		{
   186 		isFat = (fsName.CompareF(_L("Local")) == 0);
   185 		isFat = (fsName.CompareF(_L("Local")) == 0);