persistentstorage/sql/TEST/t_sqlbur.cpp
changeset 55 44f437012c90
parent 51 7d4490026038
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
   124 void Check(TInt aValue, TInt aLine)
   124 void Check(TInt aValue, TInt aLine)
   125 	{
   125 	{
   126 	if(!aValue)
   126 	if(!aValue)
   127 		{
   127 		{
   128 		TestEnvDestroy();
   128 		TestEnvDestroy();
       
   129 		TheTest.Printf(_L("*** Expression evaluated to false\r\n"));
   129 		TheTest(EFalse, aLine);
   130 		TheTest(EFalse, aLine);
   130 		}
   131 		}
   131 	}
   132 	}
   132 
   133 
   133 void Check(TInt aValue, TInt aExpected, TInt aLine)
   134 void Check(TInt aValue, TInt aExpected, TInt aLine)
   134 	{
   135 	{
   135 	if(aValue != aExpected)
   136 	if(aValue != aExpected)
   136 		{
   137 		{
   137 		TestEnvDestroy();
   138 		TestEnvDestroy();
   138 		RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
   139 		TheTest.Printf(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
   139 		TheTest(EFalse, aLine);
   140 		TheTest(EFalse, aLine);
   140 		}
   141 		}
   141 	}
   142 	}
   142 #define TEST(arg) ::Check((arg), __LINE__)
   143 #define TEST(arg) ::Check((arg), __LINE__)
   143 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__)
   144 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__)