kerneltest/f32test/server/t_findcapall.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
--- a/kerneltest/f32test/server/t_findcapall.cpp	Mon May 03 13:47:38 2010 +0300
+++ b/kerneltest/f32test/server/t_findcapall.cpp	Fri May 14 17:13:29 2010 +0300
@@ -20,6 +20,7 @@
 // 
 //
 
+#define __E32TEST_EXTENSION__
 #include <e32test.h>
 #include <f32file.h>
 
@@ -47,7 +48,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.
@@ -64,7 +65,7 @@
 			     _L("z:\\sys\\bin\\"),
 			     _L("nonexistingfile.txt"));
 	
-	test(Err==KErrNotFound);
+	test_Value(Err, Err == KErrNotFound);
 	
 	// Test: Find existing file in existing /sys folder
 	//
@@ -77,7 +78,7 @@
 			     _L("z:\\sys\\bin\\"),
 			     _L("t_findcaptestfile.txt"));
 	
-	test(Err==KErrNone);
+	test_KErrNone(Err);
 	
 	// Test: Find non existing file in existing / non existing /sys folder
 	//
@@ -90,7 +91,7 @@
 			     _L("c:\\sys\\"),
 			     _L("nonexisting.txt"));
 	
-	test(Err==KErrNotFound);
+	test_Value(Err, Err == KErrNotFound);
 	
 	// Test: Find existing file in /sys folder without specifying the path
 	//
@@ -103,7 +104,7 @@
 			     _L("\\sys\\bin\\"),
 			     _L("t_findcaptestfile.txt"));
 	
-	test(Err==KErrNone);
+	test_KErrNone(Err);
 	
 	// Test: Find non existing file in /sys folder without specifying the path
 	//
@@ -116,7 +117,7 @@
 			     _L("\\sys\\"),
 			     _L("nonexisting.txt"));
 	
-	test(Err==KErrNotFound);
+	test_Value(Err, Err == KErrNotFound);
 	
 	FileServer.Close();