persistentstorage/sql/TEST/t_sqlload.cpp
changeset 55 44f437012c90
parent 51 7d4490026038
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    96 		DeleteTestFiles();
    96 		DeleteTestFiles();
    97 		if(aPrintThreadName)
    97 		if(aPrintThreadName)
    98 			{
    98 			{
    99 			RThread th;
    99 			RThread th;
   100 			TName name = th.Name();
   100 			TName name = th.Name();
   101 			RDebug::Print(_L("*** Thread %S, Line %d\r\n"), &name, aLine);
   101 			RDebug::Print(_L("*** Thread %S, Line %d. Expression evaluated to false\r\n"), &name, aLine);
   102 			}
   102 			}
   103 		else
   103 		else
   104 			{
   104 			{
   105 			RDebug::Print(_L("*** Line %d\r\n"), aLine);
   105 			TheTest.Printf(_L("*** Line %d. Expression evaluated to false\r\n"), aLine);
   106 			}
   106 			}
   107 		TheTest(EFalse, aLine);
   107 		TheTest(EFalse, aLine);
   108 		}
   108 		}
   109 	}
   109 	}
   110 void Check2(TInt aValue, TInt aExpected, TInt aLine, TBool aPrintThreadName = EFalse)
   110 void Check2(TInt aValue, TInt aExpected, TInt aLine, TBool aPrintThreadName = EFalse)
   118 			TName name = th.Name();
   118 			TName name = th.Name();
   119 			RDebug::Print(_L("*** Thread %S, Line %d Expected error: %d, got: %d\r\n"), &name, aLine, aExpected, aValue);
   119 			RDebug::Print(_L("*** Thread %S, Line %d Expected error: %d, got: %d\r\n"), &name, aLine, aExpected, aValue);
   120 			}
   120 			}
   121 		else
   121 		else
   122 			{
   122 			{
   123 			RDebug::Print(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
   123 			TheTest.Printf(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
   124 			}
   124 			}
   125 		TheTest(EFalse, aLine);
   125 		TheTest(EFalse, aLine);
   126 		}
   126 		}
   127 	}
   127 	}
   128 #define TEST(arg) ::Check1((arg), __LINE__)
   128 #define TEST(arg) ::Check1((arg), __LINE__)