persistentstorage/sql/TEST/t_sqlauthorizer.cpp
changeset 55 44f437012c90
parent 0 08ec8eefde2f
--- a/persistentstorage/sql/TEST/t_sqlauthorizer.cpp	Mon Sep 27 11:59:56 2010 +0100
+++ b/persistentstorage/sql/TEST/t_sqlauthorizer.cpp	Tue Oct 19 16:26:13 2010 +0100
@@ -184,7 +184,7 @@
 	if(!aValue)
 		{
 		DeleteTestFiles();
-		RDebug::Print(_L("*** Line %d\r\n"), aLine);
+		TheTest.Printf(_L("*** Line %d. Expression evaluated to false\r\n"), aLine);
 		TheTest(EFalse, aLine);
 		}
 	}
@@ -193,7 +193,7 @@
 	if(aValue != aExpected)
 		{
 		DeleteTestFiles();
-		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);
 		}
 	}
@@ -306,7 +306,10 @@
 					
 			RSqlStatement stmt;
 			TInt err = stmt.Prepare(TheDb, TheSql);
-			RDebug::Printf("Testing the following pragma command - %s",TheSql.Ptr());
+			TBuf<100> sqlBuf;
+			sqlBuf.Copy(TheSql);
+			sqlBuf.SetLength(sqlBuf.Length() - 1);//remove the terminating zero.
+			TheTest.Printf(_L("Tested pragma command: %S\r\n"), &sqlBuf);
 			switch (KResultsTable[i][index])
 				{
 				case EOk: