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