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