kerneltest/f32test/server/t_cp_plugin.cpp
changeset 109 b3a1d9898418
parent 33 0173bcd7697c
child 257 3e88ff8f41d5
--- a/kerneltest/f32test/server/t_cp_plugin.cpp	Mon May 03 13:47:38 2010 +0300
+++ b/kerneltest/f32test/server/t_cp_plugin.cpp	Fri May 14 17:13:29 2010 +0300
@@ -16,6 +16,7 @@
 //
 
 
+#define __E32TEST_EXTENSION__
 #include <f32file.h>
 #include <e32ldr.h>
 #include <e32ldr_private.h>
@@ -42,8 +43,6 @@
 void TestCompatibility();
 void TestINC126563();
 
-// Codepage dll name
-_LIT(KCP932Name,"T_CP932");
 
 TInt LoadCodePageDll(const TDesC& aCodePageDllName)
 	{
@@ -95,7 +94,8 @@
 	test.Start(_L("Starting T_CP_PLUGIN tests"));
 
 #if defined(_DEBUG) || defined(_DEBUG_RELEASE)
-
+	// Codepage dll name
+	_LIT(KCP932Name,"T_CP932");
 	// Test only runs on Fat file systems
 	TheFs.SessionPath(gSessionPath);
 	TInt driveNum = CurrentDrive();
@@ -111,13 +111,13 @@
 			{
 			TBuf<16> CodepageDllName(KCP932Name);
 			r = LoadCodePageDll(CodepageDllName);
-			test(r == KErrNone || r == KErrAlreadyExists);
+			test_Value(r, r == KErrNone || r == KErrAlreadyExists);
 
 			if(r == KErrNone)
 				{
 				// should not allow loading again codepage dll.
 				r = LoadCodePageDll(CodepageDllName);
-				test(r == KErrAlreadyExists);
+				test_Value(r, r == KErrAlreadyExists);
 
 				}
 
@@ -129,7 +129,7 @@
 
 			// Disables codepage dll implementation of LocaleUtils functions for other base tests
 			r = TheFs.ControlIo(driveNum, KControlIoDisableFatUtilityFunctions);
-			test(r == KErrNone);
+			test_KErrNone(r);
 			}
 		}
 	else