kerneltest/f32test/server/t_dspace.cpp
changeset 33 0173bcd7697c
parent 0 a41df078684a
child 109 b3a1d9898418
child 249 a179b74831c9
equal deleted inserted replaced
31:56f325a607ea 33:0173bcd7697c
   176 	if(TheBuffer.Length()!=KMaxBufSize)
   176 	if(TheBuffer.Length()!=KMaxBufSize)
   177 		{
   177 		{
   178 		TheBuffer.SetLength(KMaxBufSize);
   178 		TheBuffer.SetLength(KMaxBufSize);
   179 		Mem::Fill((void*)TheBuffer.Ptr(),KMaxBufSize,0xab);
   179 		Mem::Fill((void*)TheBuffer.Ptr(),KMaxBufSize,0xab);
   180 		}
   180 		}
   181 	TheDiskSize=DiskSize(KDefaultDrive);
       
   182 #if defined(__WINS__)
   181 #if defined(__WINS__)
   183 	RemovableDrive=EDriveX;
   182 	RemovableDrive=EDriveX;
   184 #else
   183 #else
   185 	TDriveList drvList;
   184 	TDriveList drvList;
   186 	if(KErrNone == TheFs.DriveList(drvList))
   185 	if(KErrNone == TheFs.DriveList(drvList))
   238 #else
   237 #else
   239 	Format(drive);
   238 	Format(drive);
   240 	// test not run on c: drive but does use it
   239 	// test not run on c: drive but does use it
   241 	Format(EDriveC);
   240 	Format(EDriveC);
   242 #endif
   241 #endif
       
   242 	TheDiskSize=DiskSize(KDefaultDrive);
   243 	// and set the default directory
   243 	// and set the default directory
   244 	r=TheFs.MkDirAll(gSessionPath);
   244 	r=TheFs.MkDirAll(gSessionPath);
   245 	test(r==KErrNone || r==KErrAlreadyExists);
   245 	test(r==KErrNone || r==KErrAlreadyExists);
   246 
   246 
   247 	r=TheFs.Delete(KFileFiller);
   247 	r=TheFs.Delete(KFileFiller);