persistentstorage/sql/TEST/t_sqlgetfirststmt.cpp
changeset 55 44f437012c90
parent 0 08ec8eefde2f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    51 void Check1(TInt aValue, TInt aLine)
    51 void Check1(TInt aValue, TInt aLine)
    52 	{
    52 	{
    53 	if(!aValue)
    53 	if(!aValue)
    54 		{
    54 		{
    55 		DestroyTestEnv();
    55 		DestroyTestEnv();
    56 		RDebug::Print(_L("*** Line %d\r\n"), aLine);
    56 		TheTest.Printf(_L("*** Line %d\r\n"), aLine);
    57 		TheTest(EFalse, aLine);
    57 		TheTest(EFalse, aLine);
    58 		}
    58 		}
    59 	}
    59 	}
    60 void Check2(TInt aValue, TInt aExpected, TInt aLine)
    60 void Check2(TInt aValue, TInt aExpected, TInt aLine)
    61 	{
    61 	{
    62 	if(aValue != aExpected)
    62 	if(aValue != aExpected)
    63 		{
    63 		{
    64 		DestroyTestEnv();
    64 		DestroyTestEnv();
    65 		RDebug::Print(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
    65 		TheTest.Printf(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
    66 		TheTest(EFalse, aLine);
    66 		TheTest(EFalse, aLine);
    67 		}
    67 		}
    68 	}
    68 	}
    69 #define TEST(arg) ::Check1((arg), __LINE__)
    69 #define TEST(arg) ::Check1((arg), __LINE__)
    70 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)
    70 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)