equal
deleted
inserted
replaced
1060 // Do tests relative to session path |
1060 // Do tests relative to session path |
1061 // |
1061 // |
1062 { |
1062 { |
1063 //-- set up console output |
1063 //-- set up console output |
1064 Fat_Test_Utils::SetConsole(test.Console()); |
1064 Fat_Test_Utils::SetConsole(test.Console()); |
1065 |
|
1066 |
|
1067 if (gSessionPath[0]=='C') //only test on non C drives |
|
1068 { |
|
1069 test.Printf(_L("TEST NOT RUN FOR THIS DRIVE")); |
|
1070 return; |
|
1071 } |
|
1072 |
1065 |
1073 if (UserSvr::DebugMask(2)&0x00000002) // TESTFAST mode set? (for automated test builds) |
1066 if (UserSvr::DebugMask(2)&0x00000002) // TESTFAST mode set? (for automated test builds) |
1074 if(IsTestingLFFS()) |
1067 if(IsTestingLFFS()) |
1075 { |
1068 { |
1076 // Don't run on LFFS (to increase speed of automated testing) |
1069 // Don't run on LFFS (to increase speed of automated testing) |
1083 r=RFs::CharToDrive(gSessionPath[0],gTestDrive); |
1076 r=RFs::CharToDrive(gSessionPath[0],gTestDrive); |
1084 test(r==KErrNone); |
1077 test(r==KErrNone); |
1085 |
1078 |
1086 r=RFs::DriveToChar(gTestDrive,gCh); |
1079 r=RFs::DriveToChar(gTestDrive,gCh); |
1087 test(r==KErrNone); |
1080 test(r==KErrNone); |
|
1081 |
|
1082 TDriveInfo drv; |
|
1083 r = TheFs.Drive(drv, gTestDrive); |
|
1084 test(r == KErrNone); |
|
1085 |
|
1086 if (Is_Win32(TheFs, gTestDrive)) |
|
1087 { |
|
1088 test.Printf(_L("Skipping on emulator %C: drive\n"), gSessionPath[0]); |
|
1089 return; |
|
1090 } |
|
1091 |
|
1092 // do not run this test on RAM drive |
|
1093 if (drv.iType == EMediaRam) |
|
1094 { |
|
1095 test.Printf(_L("Test can't run on RAM drive %C:\n"), gSessionPath[0]); |
|
1096 return; |
|
1097 } |
1088 |
1098 |
1089 //-- print drive information |
1099 //-- print drive information |
1090 PrintDrvInfo(TheFs, gTestDrive); |
1100 PrintDrvInfo(TheFs, gTestDrive); |
1091 |
1101 |
1092 Test1(); //General test for new APIs |
1102 Test1(); //General test for new APIs |