persistentstorage/sql/TEST/t_sqlfilebuf64.cpp
changeset 55 44f437012c90
parent 51 7d4490026038
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    78 void Check1(TInt aValue, TInt aLine)
    78 void Check1(TInt aValue, TInt aLine)
    79 	{
    79 	{
    80 	if(!aValue)
    80 	if(!aValue)
    81 		{
    81 		{
    82 		TestEnvDestroy();
    82 		TestEnvDestroy();
    83 		RDebug::Print(_L("*** Line %d\r\n"), aLine);
    83 		TheTest.Printf(_L("*** Line %d. Expression evaluated to false\r\n"), aLine);
    84 		TheTest(EFalse, aLine);
    84 		TheTest(EFalse, aLine);
    85 		}
    85 		}
    86 	}
    86 	}
    87 void Check2(TInt aValue, TInt aExpected, TInt aLine)
    87 void Check2(TInt aValue, TInt aExpected, TInt aLine)
    88 	{
    88 	{
    89 	if(aValue != aExpected)
    89 	if(aValue != aExpected)
    90 		{
    90 		{
    91 		TestEnvDestroy();
    91 		TestEnvDestroy();
    92 		RDebug::Print(_L("*** Line %d, Expected result: %d, got: %d\r\n"), aLine, aExpected, aValue);
    92 		TheTest.Printf(_L("*** Line %d, Expected result: %d, got: %d\r\n"), aLine, aExpected, aValue);
    93 		TheTest(EFalse, aLine);
    93 		TheTest(EFalse, aLine);
    94 		}
    94 		}
    95 	}
    95 	}
    96 #define TEST(arg) ::Check1((arg), __LINE__)
    96 #define TEST(arg) ::Check1((arg), __LINE__)
    97 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)
    97 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)