persistentstorage/sql/TEST/t_sqlcorrupt.cpp
changeset 55 44f437012c90
parent 51 7d4490026038
--- a/persistentstorage/sql/TEST/t_sqlcorrupt.cpp	Mon Sep 27 11:59:56 2010 +0100
+++ b/persistentstorage/sql/TEST/t_sqlcorrupt.cpp	Tue Oct 19 16:26:13 2010 +0100
@@ -22,6 +22,14 @@
 
 ///////////////////////////////////////////////////////////////////////////////////////
 
+//In order to be able to compile the test, the following variables are defined (used inside the OS porting layer, when _SQLPROFILER macro is defined)
+#ifdef _SQLPROFILER
+TInt TheSqlSrvProfilerFileRead = 0;
+TInt TheSqlSrvProfilerFileWrite = 0;
+TInt TheSqlSrvProfilerFileSync = 0;
+TInt TheSqlSrvProfilerFileSetSize = 0;
+#endif
+
 RSqlDatabase TheDb;
 RTest TheTest(_L("t_sqlcorrupt test"));
 
@@ -52,7 +60,7 @@
 	if(!aValue)
 		{
 		DestroyTestEnv();
-		RDebug::Print(_L("*** Boolean expression evaluated to false. Line %d\r\n"), aLine);
+		TheTest.Printf(_L("*** Expression evaluated to false. Line %d\r\n"), aLine);
 		TheTest(EFalse, aLine);
 		}
 	}
@@ -61,7 +69,7 @@
 	if(aValue != aExpected)
 		{
 		DestroyTestEnv();
-		RDebug::Print(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
+		TheTest.Printf(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
 		TheTest(EFalse, aLine);
 		}
 	}
@@ -442,7 +450,7 @@
 TInt E32Main()
 	{
 	TheTest.Title();
-	
+
 	CTrapCleanup* tc = CTrapCleanup::New();
 	TheTest(tc != NULL);