kerneltest/f32test/fsstress/t_sesfs.cpp
changeset 109 b3a1d9898418
parent 33 0173bcd7697c
child 257 3e88ff8f41d5
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
   260 	test(w.iDrive.iType==v.iDrive.iType);
   260 	test(w.iDrive.iType==v.iDrive.iType);
   261 	test(w.iDrive.iConnectionBusType==v.iDrive.iConnectionBusType);
   261 	test(w.iDrive.iConnectionBusType==v.iDrive.iConnectionBusType);
   262 	test(w.iDrive.iDriveAtt==KDriveAttSubsted);
   262 	test(w.iDrive.iDriveAtt==KDriveAttSubsted);
   263 	test(w.iDrive.iMediaAtt==v.iDrive.iMediaAtt);
   263 	test(w.iDrive.iMediaAtt==v.iDrive.iMediaAtt);
   264 	test(w.iUniqueID==v.iUniqueID);
   264 	test(w.iUniqueID==v.iUniqueID);
   265 	test(w.iSize==v.iSize);
   265 
   266 
   266     if(v.iDrive.iType != EMediaRam) // We can't assume that RAM disk will be the same size since last recorded...
   267 // If this test is being run under windows using drive C then skip free space comparison
   267     {
   268 // as it is likely to fail as the windows file system is unlike to have static freespace
   268 	    test(w.iSize==v.iSize);
       
   269 
       
   270     // If this test is being run under windows using drive C then skip free space comparison
       
   271     // as it is likely to fail as the windows file system is unlike to have static freespace
   269 #ifdef __WINS__
   272 #ifdef __WINS__
   270 	if(User::UpperCase(gTestSessionPath[0]) != 'C')
   273 	    if(User::UpperCase(gTestSessionPath[0]) != 'C')
   271 		{
   274 		    {
   272 #endif
   275 #endif
   273 		test(w.iFree==v.iFree);
   276 		    test(w.iFree==v.iFree);
   274 
   277 
   275 #ifdef __WINS__
   278 #ifdef __WINS__
   276 		}
   279 		    }
   277 #endif
   280 #endif
   278 	
   281     }
       
   282 
   279 	test(w.iName==v.iName);
   283 	test(w.iName==v.iName);
   280 	TDriveList driveList;
   284 	TDriveList driveList;
   281 	r=iFs.DriveList(driveList);
   285 	r=iFs.DriveList(driveList);
   282 	test_KErrNone(r);
   286 	test_KErrNone(r);
   283 	test(driveList[EDriveO]==KDriveAttSubsted);
   287 	test(driveList[EDriveO]==KDriveAttSubsted);