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