kerneltest/f32test/server/t_resize.cpp
branchRCL_3
changeset 43 c1f20ce4abcf
parent 0 a41df078684a
child 44 3e88ff8f41d5
equal deleted inserted replaced
42:a179b74831c9 43:c1f20ce4abcf
    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__
    23 #include <e32test.h>
    24 #include <e32test.h>
    24 #include <f32file.h>
    25 #include <f32file.h>
    25 #include <hal.h>
    26 #include <hal.h>
    26 #include "t_server.h"
    27 #include "t_server.h"
    27 
    28 
    54 	test.Start(_L("Starting tests"));
    55 	test.Start(_L("Starting tests"));
    55 
    56 
    56 	test.Next(_L("Connecting to file server."));
    57 	test.Next(_L("Connecting to file server."));
    57 	TInt r;
    58 	TInt r;
    58 	r = TheFs.Connect();
    59 	r = TheFs.Connect();
    59 	test(r == KErrNone);
    60 	test_KErrNone(r);
    60 
    61 
    61 	if ( !gDriveToTest.IsLower() )
    62 	if ( !gDriveToTest.IsLower() )
    62 		{
    63 		{
    63 		gDriveToTest.LowerCase();
    64 		gDriveToTest.LowerCase();
    64 		}
    65 		}
   169 	TInt r;
   170 	TInt r;
   170 
   171 
   171 	TInt isFat, isValid;
   172 	TInt isFat, isValid;
   172     TInt machUid;
   173     TInt machUid;
   173     r=HAL::Get(HAL::EMachineUid,machUid);
   174     r=HAL::Get(HAL::EMachineUid,machUid);
   174     test(r==KErrNone);
   175     test_KErrNone(r);
   175 //	test.Printf(_L("machUid = %08x.\n"), machUid);
   176 //	test.Printf(_L("machUid = %08x.\n"), machUid);
   176 
   177 
   177 	TBuf<16> fsName;							// _?_ length
   178 	TBuf<16> fsName;							// _?_ length
   178         
   179         
   179     r = TheFs.FileSystemName(fsName, aDrive);
   180     r = TheFs.FileSystemName(fsName, aDrive);
   180     test(r == KErrNone || r == KErrNotFound);
   181     test_Value(r, r == KErrNone || r == KErrNotFound);
   181 	test.Printf(_L("fsName = \"%S\".\n"), &fsName);
   182 	test.Printf(_L("fsName = \"%S\".\n"), &fsName);
   182 
   183 
   183 	if (machUid == HAL::EMachineUid_Brutus)
   184 	if (machUid == HAL::EMachineUid_Brutus)
   184 		{
   185 		{
   185 		isFat = (fsName.CompareF(_L("Local")) == 0);
   186 		isFat = (fsName.CompareF(_L("Local")) == 0);