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