equal
deleted
inserted
replaced
138 } |
138 } |
139 |
139 |
140 |
140 |
141 static void DoOOMTestL() |
141 static void DoOOMTestL() |
142 { |
142 { |
143 CLogServResourceInterpreter* logServRsc = CLogServResourceInterpreter::NewL(TheFileSess); |
143 CLogServResourceInterpreter* logServRsc = CLogServResourceInterpreter::NewL(TheFileSess); |
144 CleanupStack::PushL(logServRsc); |
144 CleanupStack::PushL(logServRsc); |
145 |
145 |
146 CLogServSecurity* logServSecurity = CLogServSecurity::NewL(*logServRsc); |
146 CLogServSecurity* logServSecurity = CLogServSecurity::NewL(*logServRsc); |
147 CleanupStack::PushL(logServSecurity); |
147 CleanupStack::PushL(logServSecurity); |
148 |
148 |
157 { |
157 { |
158 for(TInt count=1;;++count) |
158 for(TInt count=1;;++count) |
159 { |
159 { |
160 __UHEAP_FAILNEXT(count); |
160 __UHEAP_FAILNEXT(count); |
161 __UHEAP_MARK; |
161 __UHEAP_MARK; |
162 |
|
163 TRAPD(err, ::DoOOMTestL()); |
162 TRAPD(err, ::DoOOMTestL()); |
164 |
163 |
165 if(err == KErrNoMemory) |
164 if(err == KErrNoMemory) |
166 { |
165 { |
167 __UHEAP_MARKEND; |
166 __UHEAP_MARKEND; |