3030 //-- set up console output |
3030 //-- set up console output |
3031 F32_Test_Utils::SetConsole(test.Console()); |
3031 F32_Test_Utils::SetConsole(test.Console()); |
3032 |
3032 |
3033 TInt nRes=TheFs.CharToDrive(gDriveToTest, gDriveNum); |
3033 TInt nRes=TheFs.CharToDrive(gDriveToTest, gDriveNum); |
3034 test(nRes==KErrNone); |
3034 test(nRes==KErrNone); |
3035 |
3035 |
3036 PrintDrvInfo(TheFs, gDriveNum); |
3036 PrintDrvInfo(TheFs, gDriveNum); |
3037 |
3037 |
3038 //-- FAT Supports short file names |
3038 //-- FAT Supports short file names |
3039 if(Is_Fat(TheFs, gDriveNum)) |
3039 if(Is_Fat(TheFs, gDriveNum)) |
3040 gShortFileNamesSupported = ETrue; |
3040 gShortFileNamesSupported = ETrue; |
3041 else |
3041 |
3042 if(Is_Win32(TheFs, gDriveNum)) |
3042 if(Is_Win32(TheFs, gDriveNum)) |
3043 {//-- find out if this is NTFS and if it supports short names (this feature can be switched OFF) |
3043 {//-- find out if this is NTFS and if it supports short names (this feature can be switched OFF) |
3044 |
3044 |
3045 _LIT(KLongFN, "\\this is a long file name"); |
3045 _LIT(KLongFN, "\\this is a long file name"); |
3046 nRes = CreateEmptyFile(TheFs, KLongFN, 10); |
3046 nRes = CreateEmptyFile(TheFs, KLongFN, 10); |
3050 nRes = TheFs.GetShortName(KLongFN, shortName); |
3050 nRes = TheFs.GetShortName(KLongFN, shortName); |
3051 gShortFileNamesSupported = (nRes == KErrNone); |
3051 gShortFileNamesSupported = (nRes == KErrNone); |
3052 |
3052 |
3053 nRes = TheFs.Delete(KLongFN); |
3053 nRes = TheFs.Delete(KLongFN); |
3054 test(nRes==KErrNone); |
3054 test(nRes==KErrNone); |
|
3055 |
|
3056 DeleteTestDirectory(); |
3055 } |
3057 } |
3056 |
3058 else |
3057 |
3059 { |
3058 |
3060 nRes = FormatDrive(TheFs, gDriveNum, ETrue); |
3059 |
3061 test(nRes==KErrNone); |
3060 DeleteTestDirectory(); |
3062 } |
|
3063 |
3061 CreateTestDirectory(_L("\\F32-TST\\TFILE\\")); |
3064 CreateTestDirectory(_L("\\F32-TST\\TFILE\\")); |
3062 |
|
3063 |
3065 |
3064 testFileRename(); |
3066 testFileRename(); |
3065 testSetSize(); |
3067 testSetSize(); |
3066 CopyFileToTestDirectory(); |
3068 CopyFileToTestDirectory(); |
3067 testFileSeek(); |
3069 testFileSeek(); |