persistentstorage/sql/TEST/t_sqlscalarfullselect.cpp
changeset 55 44f437012c90
parent 29 cce6680bbf1c
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    41 void Check1(TInt64 aValue, TInt aLine)
    41 void Check1(TInt64 aValue, TInt aLine)
    42 	{
    42 	{
    43 	if(!aValue)
    43 	if(!aValue)
    44 		{
    44 		{
    45 		DeleteTestFiles();
    45 		DeleteTestFiles();
    46 		RDebug::Print(_L("*** Line %d\r\n"), aLine);
    46 		TheTest.Printf(_L("*** Line %d. Expression evaluated to false\r\n"), aLine);
    47 		TheTest(EFalse, aLine);
    47 		TheTest(EFalse, aLine);
    48 		}
    48 		}
    49 	}
    49 	}
    50 void Check2(TInt64 aValue, TInt64 aExpected, TInt aLine)
    50 void Check2(TInt64 aValue, TInt64 aExpected, TInt aLine)
    51 	{
    51 	{
    52 	if(aValue != aExpected)
    52 	if(aValue != aExpected)
    53 		{
    53 		{
    54 		DeleteTestFiles();
    54 		DeleteTestFiles();
    55 		RDebug::Print(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
    55 		TheTest.Printf(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
    56 		TheTest(EFalse, aLine);
    56 		TheTest(EFalse, aLine);
    57 		}
    57 		}
    58 	}
    58 	}
    59 #define TEST(arg) ::Check1((arg), __LINE__)
    59 #define TEST(arg) ::Check1((arg), __LINE__)
    60 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)
    60 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)