kerneltest/f32test/server/t_findcapnone.cpp
branchRCL_3
changeset 43 c1f20ce4abcf
parent 0 a41df078684a
child 44 3e88ff8f41d5
--- a/kerneltest/f32test/server/t_findcapnone.cpp	Thu Aug 19 11:14:22 2010 +0300
+++ b/kerneltest/f32test/server/t_findcapnone.cpp	Tue Aug 31 16:34:26 2010 +0300
@@ -22,6 +22,7 @@
 // 
 //
 
+#define __E32TEST_EXTENSION__
 #include <e32test.h>
 #include <f32file.h>
 
@@ -49,7 +50,7 @@
 	
 	Err=FileServer.Connect();
 	
-	test(Err==KErrNone);
+	test_KErrNone(Err);
     
     // RTest.Next is called from function "TestFind()".
     // RTest.Start is called here to start the test.
@@ -66,7 +67,7 @@
 		         _L("z:\\sys\\bin\\"),
 		         _L("nonexistingfile.txt"));
 	
-	test(Err==KErrPermissionDenied);
+	test_Value(Err, Err == KErrPermissionDenied);
 	
 	// Test: Find existing file in existing /sys folder
 	//
@@ -79,7 +80,7 @@
 		         _L("z:\\sys\\bin\\"),
 		         _L("t_findcaptestfile.txt"));
 	
-	test(Err==KErrPermissionDenied);
+	test_Value(Err, Err == KErrPermissionDenied);
 	
 	// Test: Find non existing file in existing / non existing /sys folder
 	//
@@ -92,7 +93,7 @@
 		         _L("c:\\sys\\"),
 		         _L("nonexisting.txt"));
 	
-	test(Err==KErrPermissionDenied);
+	test_Value(Err, Err == KErrPermissionDenied);
 	
 	// Test: Find existing file in /sys folder without specifying the path
 	//
@@ -105,7 +106,7 @@
 		         _L("\\sys\\bin\\"),
 		         _L("t_findcaptestfile.txt"));
 	
-	test(Err==KErrPermissionDenied);
+	test_Value(Err, Err == KErrPermissionDenied);
 	
 	// Test: Find non existing file in /sys folder without specifying the path
 	//
@@ -118,7 +119,7 @@
 		         _L("\\sys\\"),
 		         _L("nonexisting.txt"));
 	
-	test(Err==KErrPermissionDenied);
+	test_Value(Err, Err == KErrPermissionDenied);
 	
 	FileServer.Close();