diff -r a179b74831c9 -r c1f20ce4abcf kerneltest/f32test/server/t_fatcharsetconv_aux.cpp --- a/kerneltest/f32test/server/t_fatcharsetconv_aux.cpp Thu Aug 19 11:14:22 2010 +0300 +++ b/kerneltest/f32test/server/t_fatcharsetconv_aux.cpp Tue Aug 31 16:34:26 2010 +0300 @@ -50,11 +50,11 @@ RFormat format; TInt count; TInt r=format.Open(TheFs,driveBuf,EQuickFormat,count); - test(r==KErrNone); + test_KErrNone(r); while(count) { TInt r=format.Next(count); - test(r==KErrNone); + test_KErrNone(r); } format.Close(); } @@ -65,7 +65,7 @@ // { TInt r=TheFs.MkDirAll(aDirName); - test(r==KErrNone || r==KErrAlreadyExists); + test_Value(r, r == KErrNone || r==KErrAlreadyExists); } @@ -94,11 +94,11 @@ TParsePtrC path(aSessionPath); test(path.DrivePresent()==EFalse); TInt r=TheFs.SetSessionPath(aSessionPath); - test(r==KErrNone); + test_KErrNone(r); r=TheFs.SessionPath(gSessionPath); - test(r==KErrNone); + test_KErrNone(r); r=TheFs.MkDirAll(gSessionPath); - test(r==KErrNone || r==KErrAlreadyExists); + test_Value(r, r == KErrNone || r==KErrAlreadyExists); } TInt CurrentDrive(TChar aDriveChar) @@ -108,7 +108,7 @@ { TInt driveNum; TInt r = TheFs.CharToDrive(aDriveChar,driveNum); - test(r==KErrNone); + test_KErrNone(r); gDriveToTest = gSessionPath[0] = (TText)aDriveChar; return(driveNum); } @@ -120,7 +120,7 @@ { TInt driveNum; TInt r = TheFs.CharToDrive(gSessionPath[0],driveNum); - test(r==KErrNone); + test_KErrNone(r); return(driveNum); } @@ -131,20 +131,20 @@ { RFile file; TInt r=file.Replace(TheFs,aFileName,0); - test(r==KErrNone || r==KErrPathNotFound); + test_Value(r, r == KErrNone || r==KErrPathNotFound); if (r==KErrPathNotFound) { r=TheFs.MkDirAll(aFileName); - test(r==KErrNone); + test_KErrNone(r); r=file.Replace(TheFs,aFileName,0); - test(r==KErrNone); + test_KErrNone(r); } TCheckedUid checkedUid(aUidType); TPtrC8 uidData((TUint8*)&checkedUid,sizeof(TCheckedUid)); r=file.Write(uidData); - test(r==KErrNone); + test_KErrNone(r); r=file.Write(aFileContents); - test(r==KErrNone); + test_KErrNone(r); file.Close(); } @@ -160,16 +160,16 @@ test.Printf(_L("ERROR: r=%d"),r); test(EFalse); } - test(r==KErrNone || r==KErrPathNotFound); + test_Value(r, r == KErrNone || r==KErrPathNotFound); if (r==KErrPathNotFound) { r=TheFs.MkDirAll(aFileName); - test(r==KErrNone); + test_KErrNone(r); r=file.Replace(TheFs,aFileName,0); - test(r==KErrNone); + test_KErrNone(r); } r=file.Write(aFileContents); - test(r==KErrNone); + test_KErrNone(r); file.Close(); } @@ -180,17 +180,17 @@ { RFile file; TInt r=file.Replace(TheFs,aFileName,0); - test(r==KErrNone || r==KErrPathNotFound); + test_Value(r, r == KErrNone || r==KErrPathNotFound); if (r==KErrPathNotFound) { r=TheFs.MkDirAll(aFileName); - test(r==KErrNone); + test_KErrNone(r); r=file.Replace(TheFs,aFileName,0); - test(r==KErrNone); + test_KErrNone(r); } file.Close(); r=TheFs.SetAtt(aFileName,anAttributes,0); - test(r==KErrNone); + test_KErrNone(r); } void MakeFile(const TDesC& aFileName) @@ -210,7 +210,7 @@ void ReadBootSector(TFatBootSector& aBootSector) { TInt r = ReadBootSector(TheFs, CurrentDrive(), KBootSectorNum<RmDir(filename_dir); - test(r==KErrNone || r==KErrNotFound || r==KErrPathNotFound || r==KErrInUse); + test_Value(r, r == KErrNone || r==KErrNotFound || r==KErrPathNotFound || r==KErrInUse); } // Cleanup test variables @@ -788,7 +788,7 @@ logFileName.Append(KExtension); TInt r = file.Create(TheFs, logFileName, EFileRead|EFileWrite); - test(r == KErrNone || r == KErrAlreadyExists); + test_Value(r, r == KErrNone || r == KErrAlreadyExists); if (r == KErrNone) { @@ -799,10 +799,10 @@ if (r == KErrAlreadyExists) { r = file.Open(TheFs, logFileName, EFileRead|EFileWrite); - test(r == KErrNone); + test_KErrNone(r); TInt start = 0; r=file.Seek(ESeekEnd,start); - test(r == KErrNone); + test_KErrNone(r); } tempBuf.SetLength(0);