persistentstorage/sql/TEST/t_sqlapi.cpp
changeset 55 44f437012c90
parent 28 7a522c0700d3
--- a/persistentstorage/sql/TEST/t_sqlapi.cpp	Mon Sep 27 11:59:56 2010 +0100
+++ b/persistentstorage/sql/TEST/t_sqlapi.cpp	Tue Oct 19 16:26:13 2010 +0100
@@ -77,6 +77,7 @@
 	if(!aValue)
 		{
 		DeleteTestFiles();
+		TheTest.Printf(_L("*** Expression evaluated to false\r\n"));
 		TheTest(EFalse, aLine);
 		}
 	}
@@ -85,7 +86,7 @@
 	if(aValue != aExpected)
 		{
 		DeleteTestFiles();
-		RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
+		TheTest.Printf(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
 		TheTest(EFalse, aLine);
 		}
 	}
@@ -121,7 +122,7 @@
 	if(rc < 0 && SqlRetCodeClass(rc) == ESqlDbError)
 		{
 		TPtrC msg = aDb.LastErrorMessage();
-		RDebug::Print(_L("Execute SQL error - '%S'\r\n"), &msg);
+		TheTest.Printf(_L("Execute SQL error - '%S'\r\n"), &msg);
 		}
 	if(aExpectedError < 0)
 		{
@@ -144,7 +145,7 @@
 	if(rc != KErrNone && SqlRetCodeClass(rc) == ESqlDbError)
 		{
 		TPtrC msg = aDb.LastErrorMessage();
-		RDebug::Print(_L("Execute SQL error - '%S'\r\n"), &msg);
+		TheTest.Printf(_L("Execute SQL error - '%S'\r\n"), &msg);
 		}
 	TEST2(rc, aExpectedError);
 	return stmt;
@@ -156,7 +157,7 @@
 	if(rc < 0 && SqlRetCodeClass(rc) == ESqlDbError)
 		{
 		TPtrC msg = aDb.LastErrorMessage();
-		RDebug::Print(_L("Execute SQL error - '%S'\r\n"), &msg);
+		TheTest.Printf(_L("Execute SQL error - '%S'\r\n"), &msg);
 		}
 	if(aExpectedError < 0)
 		{
@@ -287,7 +288,7 @@
 	fs.FileSystemName(filesysname,(TInt) EDriveC);
     fs.Close();
 
-	RDebug::Print(_L("file system name = %S"), &filesysname);
+    TheTest.Printf(_L("file system name = %S"), &filesysname);
 	TInt maxFileName = KMaxFileName -40;//"-40" because the SQLITE engine creates a journal file if begins
 	                                                 //a transaction. The name of the journal file is 
 	                                                 //"<dbFileName>-journal.<ext>". It is obvious that if the