kerneltest/f32test/server/t_vfat.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
--- a/kerneltest/f32test/server/t_vfat.cpp	Tue Aug 31 16:34:26 2010 +0300
+++ b/kerneltest/f32test/server/t_vfat.cpp	Wed Sep 01 12:34:56 2010 +0100
@@ -15,7 +15,6 @@
 // 
 //
 
-#define __E32TEST_EXTENSION__
 #include <f32file.h>
 #include <e32test.h>
 #include <e32math.h>
@@ -57,15 +56,15 @@
 		TBuf<32> longName=namelong;
 		longName.AppendNum(fileNum);
 		TInt r=TheFs.Rename(shortName,longName);
-		test_KErrNone(r);
+		test(r==KErrNone);
 		}
 
 	TInt r=TheFs.CheckDisk(gSessionPath);
-	test_Value(r, r == KErrNone || r==KErrNotSupported);
+	test(r==KErrNone || r==KErrNotSupported);
 
 	CDir* dirList;
 	r=TheFs.GetDir(_L("*.*"),KEntryAttMaskSupported,ESortBySize,dirList);
-	test_KErrNone(r);
+	test(r==KErrNone);
 	test(dirList->Count()==totalFiles);
 	for (i=0;i<totalFiles;i++)
 		{
@@ -130,7 +129,7 @@
 			if (fileName==_L(""))
 				goto End;
 			r=TheFs.Delete(fileName);
-			test_KErrNone(r);
+			test(r==KErrNone);
 			gFileName[fileNum]=_L("");
 			goto End;
 		default:
@@ -143,14 +142,14 @@
 			TInt r;
 			RFile thing;
 			r=thing.Open(TheFs, fileName, EFileShareAny);
-			test_Value(r, r == KErrNone || r==KErrNotFound);
+			test (r==KErrNone || r==KErrNotFound);
 			if (r==KErrNone)
 				{
 				TInt s;
 				test (thing.Size(s) == KErrNone);
 				thing.Close();
 				r=TheFs.Delete(fileName);
-				test_KErrNone(r);
+				test (r==KErrNone);
 				gFileName[s]=_L("");
 				}
 			else
@@ -169,7 +168,7 @@
 			TInt r=TheFs.Rename(gFileName[fileNum],fileName);
             if (r != KErrNone && r != KErrAlreadyExists)
                 test.Printf(_L("Rename returned %d at line %d"), r, __LINE__);
-			test_Value(r, r == KErrNone || r==KErrAlreadyExists);
+			test(r==KErrNone || r==KErrAlreadyExists);
 			if (r==KErrNone)
 				gFileName[fileNum]=fileName;
 			}
@@ -178,11 +177,11 @@
 			{
 			test.Printf(_L("Iteration %d    \r"),gMaxIterations-maxIterations);
 			TInt r=TheFs.CheckDisk(gSessionPath);
-			test_Value(r, r == KErrNone || r==KErrNotSupported);
+			test(r==KErrNone || r==KErrNotSupported);
 			TInt count=0;
 			CDir* dirList;
 			r=TheFs.GetDir(_L("*.*"),KEntryAttMaskSupported,ESortBySize,dirList);
-			test_KErrNone(r);
+			test(r==KErrNone);
 			for(i=0;i<gMaxFiles;i++)
 				{
 				if (gFileName[i]==_L(""))
@@ -232,19 +231,19 @@
     TEntry  entry;
 
     nRes = TheFs.Entry(KName1, entry);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     test(entry.iName.CompareF(KExpectedName) == 0);
 
     nRes = TheFs.Entry(KName2, entry);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     test(entry.iName.CompareF(KExpectedName) == 0);
 
     nRes = TheFs.Entry(KName3, entry);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     test(entry.iName.CompareF(KExpectedName) == 0);
 
     nRes = TheFs.Entry(KName3, entry);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     test(entry.iName.CompareF(KExpectedName) == 0);
 }
 
@@ -274,46 +273,46 @@
 
     //----- create and check "\\file1"
     nRes = file.Replace(TheFs, KName1, EFileWrite);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     file.Close();
     
     DoCheckTD_FN();
 
     nRes = TheFs.Delete(KName1);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
 
 
     //----- create and check "\\file1."
     nRes = file.Replace(TheFs, KName2, EFileWrite);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     file.Close();
     
     DoCheckTD_FN();
 
     nRes = TheFs.Delete(KName2);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
 
 
     //----- create and check "\\file1.."
     nRes = file.Replace(TheFs, KName3, EFileWrite);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     file.Close();
     
     DoCheckTD_FN();
 
     nRes = TheFs.Delete(KName3);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
 
 
     //----- create and check "\\file1..."
     nRes = file.Replace(TheFs, KName4, EFileWrite);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
     file.Close();
     
     DoCheckTD_FN();
     
     nRes = TheFs.Delete(KName4);
-    test_KErrNone(nRes);
+    test(nRes == KErrNone);
 
 
 }