persistentstorage/sql/TEST/t_sqldb64.cpp
changeset 55 44f437012c90
parent 0 08ec8eefde2f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    59 void Check(TInt aValue, TInt aLine)
    59 void Check(TInt aValue, TInt aLine)
    60 	{
    60 	{
    61 	if(!aValue)
    61 	if(!aValue)
    62 		{
    62 		{
    63 		DeleteTestFiles();
    63 		DeleteTestFiles();
       
    64 		TheTest.Printf(_L("*** Expression evaluated to false\r\n"));
    64 		TheTest(EFalse, aLine);
    65 		TheTest(EFalse, aLine);
    65 		}
    66 		}
    66 	}
    67 	}
    67 void Check(TInt aValue, TInt aExpected, TInt aLine)
    68 void Check(TInt aValue, TInt aExpected, TInt aLine)
    68 	{
    69 	{
    69 	if(aValue != aExpected)
    70 	if(aValue != aExpected)
    70 		{
    71 		{
    71 		DeleteTestFiles();
    72 		DeleteTestFiles();
    72 		RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
    73 		TheTest.Printf(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
    73 		TheTest(EFalse, aLine);
    74 		TheTest(EFalse, aLine);
    74 		}
    75 		}
    75 	}
    76 	}
    76 #define TEST(arg) ::Check((arg), __LINE__)
    77 #define TEST(arg) ::Check((arg), __LINE__)
    77 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__)
    78 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__)