persistentstorage/sql/TEST/t_sqlsecurity1.cpp
changeset 55 44f437012c90
parent 0 08ec8eefde2f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    74 		DeleteTestFiles();
    74 		DeleteTestFiles();
    75 		if(aPrintThreadName)
    75 		if(aPrintThreadName)
    76 			{
    76 			{
    77 			RThread th;
    77 			RThread th;
    78 			TName name = th.Name();
    78 			TName name = th.Name();
    79 			RDebug::Print(_L("*** Thread %S, Line %d\r\n"), &name, aLine);
    79 			RDebug::Print(_L("*** Thread %S, Line %d. Expression evaluated to false\r\n"), &name, aLine);
    80 			}
    80 			}
    81 		else
    81 		else
    82 			{
    82 			{
    83 			RDebug::Print(_L("*** Line %d\r\n"), aLine);
    83 			TheTest.Printf(_L("*** Line %d. Expression evaluated to false\r\n"), aLine);
    84 			}
    84 			}
    85 		TheTest(EFalse, aLine);
    85 		TheTest(EFalse, aLine);
    86 		}
    86 		}
    87 	}
    87 	}
    88 void Check2(TInt aValue, TInt aExpected, TInt aLine, TBool aPrintThreadName = EFalse)
    88 void Check2(TInt aValue, TInt aExpected, TInt aLine, TBool aPrintThreadName = EFalse)
    96 			TName name = th.Name();
    96 			TName name = th.Name();
    97 			RDebug::Print(_L("*** Thread %S, Line %d Expected error: %d, got: %d\r\n"), &name, aLine, aExpected, aValue);
    97 			RDebug::Print(_L("*** Thread %S, Line %d Expected error: %d, got: %d\r\n"), &name, aLine, aExpected, aValue);
    98 			}
    98 			}
    99 		else
    99 		else
   100 			{
   100 			{
   101 			RDebug::Print(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
   101 			TheTest.Printf(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
   102 			}
   102 			}
   103 		TheTest(EFalse, aLine);
   103 		TheTest(EFalse, aLine);
   104 		}
   104 		}
   105 	}
   105 	}
   106 #define TEST(arg) ::Check1((arg), __LINE__)
   106 #define TEST(arg) ::Check1((arg), __LINE__)