kerneltest/f32test/filesystem/fat/t_mount.cpp
changeset 199 189ece41fa29
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
189:a5496987b1da 199:189ece41fa29
   627     test_KErrNone(nRes);
   627     test_KErrNone(nRes);
   628 
   628 
   629     bDriveFinalised = DoCheckVolumeFinalised(gDriveNum);
   629     bDriveFinalised = DoCheckVolumeFinalised(gDriveNum);
   630     test(!bDriveFinalised); //-- the volume has become "unfinalised"
   630     test(!bDriveFinalised); //-- the volume has become "unfinalised"
   631 
   631 
   632     //-- 2.1 open a file, try to finalise; Shall dail with KErrInUse
   632     //-- 2.1 open a file, try to finalise; This should be OK
   633     nRes = file.Replace(TheFs, KFileName, EFileWrite | EFileRead);
   633     nRes = file.Replace(TheFs, KFileName, EFileWrite | EFileRead);
   634     test_KErrNone(nRes);
   634     test_KErrNone(nRes);
   635 
   635 
   636     nRes =TheFs.FinaliseDrive(gDriveNum, RFs::EFinal_RW);
   636     nRes =TheFs.FinaliseDrive(gDriveNum, RFs::EFinal_RW);
   637     test(nRes==KErrInUse); //-- can't finalise drives with opened objects
   637     test_KErrNone(nRes);
   638 
   638 
   639     file.Close();
   639     file.Close();
   640 
   640 
   641     nRes =TheFs.FinaliseDrive(gDriveNum, RFs::EFinal_RW);
   641     nRes =TheFs.FinaliseDrive(gDriveNum, RFs::EFinal_RW);
   642     test_KErrNone(nRes);
   642     test_KErrNone(nRes);
  1272     //-------------------------------------
  1272     //-------------------------------------
  1273 
  1273 
  1274     PrintDrvInfo(TheFs, gDriveNum);
  1274     PrintDrvInfo(TheFs, gDriveNum);
  1275     InitGlobals();
  1275     InitGlobals();
  1276 
  1276 
  1277 
       
  1278     TestNotifyDiskSpace();
  1277     TestNotifyDiskSpace();
  1279 
  1278 
  1280     //-------------------------------------
  1279     //-------------------------------------
  1281     TestBackupBootSector();
  1280     TestBackupBootSector();
  1282     TestFSInfoSector();
  1281     TestFSInfoSector();