equal
deleted
inserted
replaced
40 void Check(TInt64 aValue, TInt aLine) |
40 void Check(TInt64 aValue, TInt aLine) |
41 { |
41 { |
42 if(!aValue) |
42 if(!aValue) |
43 { |
43 { |
44 DeleteTestFiles(); |
44 DeleteTestFiles(); |
|
45 TheTest.Printf(_L("*** Expression evaluated to false\r\n")); |
45 TheTest(EFalse, aLine); |
46 TheTest(EFalse, aLine); |
46 } |
47 } |
47 } |
48 } |
48 |
49 |
49 void Check(TInt64 aValue, TInt64 aExpected, TInt aLine) |
50 void Check(TInt64 aValue, TInt64 aExpected, TInt aLine) |
50 { |
51 { |
51 if(aValue != aExpected) |
52 if(aValue != aExpected) |
52 { |
53 { |
53 DeleteTestFiles(); |
54 DeleteTestFiles(); |
54 RDebug::Print(_L("*** Expected error: %ld, got: %ld\r\n"), aExpected, aValue); |
55 TheTest.Printf(_L("*** Expected error: %ld, got: %ld\r\n"), aExpected, aValue); |
55 TheTest(EFalse, aLine); |
56 TheTest(EFalse, aLine); |
56 } |
57 } |
57 } |
58 } |
58 |
59 |
59 void CreateTestDir() |
60 void CreateTestDir() |
118 |
119 |
119 void PrintEndOfOomTest(TOomTestType aOomTestType, TInt aFailingAllocationNo) |
120 void PrintEndOfOomTest(TOomTestType aOomTestType, TInt aFailingAllocationNo) |
120 { |
121 { |
121 _LIT(KClientSide, "Client side"); |
122 _LIT(KClientSide, "Client side"); |
122 _LIT(KServerSide, "Server side"); |
123 _LIT(KServerSide, "Server side"); |
123 RDebug::Print(_L("=== %S OOM Test succeeded at heap failure rate of %d ===\r\n"), |
124 TheTest.Printf(_L("=== %S OOM Test succeeded at heap failure rate of %d ===\r\n"), |
124 aOomTestType == EClientSideTest ? &KClientSide() : &KServerSide(), |
125 aOomTestType == EClientSideTest ? &KClientSide() : &KServerSide(), |
125 aFailingAllocationNo); |
126 aFailingAllocationNo); |
126 } |
127 } |
127 |
128 |
128 //If aDelayed is true, then the SQL server will delay the heap failure simulation until the database is opened. |
129 //If aDelayed is true, then the SQL server will delay the heap failure simulation until the database is opened. |