|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Test code for bugs that have been fixed, to help prevent regression |
|
15 // |
|
16 // |
|
17 |
|
18 #include <d32dbms.h> |
|
19 #include <f32file.h> |
|
20 #include <e32test.h> |
|
21 #include <s32mem.h> |
|
22 |
|
23 LOCAL_D RTest test(_L("t_dbbug")); |
|
24 LOCAL_D CTrapCleanup* TheTrapCleanup; |
|
25 LOCAL_D RFs TheFs; |
|
26 LOCAL_D RDbNamedDatabase TheDatabase; |
|
27 |
|
28 const TInt KTestCleanupStack=0x40; |
|
29 |
|
30 void Check(TInt aValue,TInt aExpected,TInt aLine) |
|
31 { |
|
32 if (aValue!=aExpected) |
|
33 { |
|
34 test.Printf(_L("*** Expected %d: got %d\r\n"),aExpected,aValue); |
|
35 test.operator()(EFalse,aLine); |
|
36 } |
|
37 } |
|
38 #define test2(a,b) Check(a,b,__LINE__) |
|
39 |
|
40 static void Print(const TText* aString) |
|
41 { |
|
42 test.Printf(_L("%s\n"),aString); |
|
43 } |
|
44 |
|
45 //////////////////////////////////////////// |
|
46 |
|
47 _LIT(KTestDatabase,"c:\\dbms-tst\\bug.db"); |
|
48 _LIT(KTableA,"A"); |
|
49 _LIT(KTableB,"B"); |
|
50 _LIT(KTableC,"C"); |
|
51 |
|
52 class Defect_590829 |
|
53 { |
|
54 public: |
|
55 static void TestL(); |
|
56 static const TDesC& Name(); |
|
57 }; |
|
58 |
|
59 |
|
60 const TDesC& Defect_590829::Name() |
|
61 { |
|
62 _LIT(KName,"590829"); |
|
63 return KName; |
|
64 } |
|
65 |
|
66 ///////////////////////////////////////////////// |
|
67 |
|
68 // Length of text data used for each entry. This will be |
|
69 // equivalent to 400 bytes for ansi characters. The number of |
|
70 // bytes must not be less than 256 (or 128 for this const). |
|
71 // If it is a stream will not be used for transfer of data. |
|
72 const TInt KTextDataLength = 200; |
|
73 |
|
74 // max column size |
|
75 const TInt KMaxColLength = 1000; |
|
76 |
|
77 // Buffer size to cause HDbsBuf::DoReadL() ipc check to be executed |
|
78 const TInt KBufSizeDoReadL = 1000; |
|
79 |
|
80 // Buffer size to cause HDbsBuf::UnderflowL() ipc check to be executed |
|
81 const TInt KBufSizeUnderflowL = 500; |
|
82 |
|
83 class Defect_071149 |
|
84 { |
|
85 public: |
|
86 static void TestL(); |
|
87 static const TDesC& Name(); |
|
88 }; |
|
89 |
|
90 |
|
91 const TDesC& Defect_071149::Name() |
|
92 { |
|
93 _LIT(KName,"071149"); |
|
94 return KName; |
|
95 } |
|
96 |
|
97 /** |
|
98 HDbsBuf did not handle case when iIpc.iHandle is 0 causing IPC calls to panic. |
|
99 The handle is 0 when opening a stream and all data is retrieved in this request. |
|
100 |
|
101 @SYMTestCaseID SYSLIB-DBMS-CT-1491 |
|
102 @SYMTestCaseDesc Tests for defect number 590829 |
|
103 @SYMTestPriority High |
|
104 @SYMTestActions Tests by setting up failure conditions. |
|
105 @SYMTestExpectedResults Test must not fail |
|
106 @SYMDEF INC071149 |
|
107 */ |
|
108 void Defect_071149::TestL() |
|
109 { |
|
110 test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-1491 ")); |
|
111 Print(_S("Creating test database")); |
|
112 |
|
113 // Connect to dbms and open db |
|
114 RDbs dbs; |
|
115 RDbNamedDatabase db; |
|
116 test2 (db.Replace(TheFs,KTestDatabase),KErrNone); |
|
117 db.Close(); |
|
118 |
|
119 test2(dbs.Connect(), KErrNone); |
|
120 test2(db.Open(dbs,KTestDatabase), KErrNone); |
|
121 |
|
122 // creating column to hold LongText |
|
123 CDbColSet *colSet = CDbColSet::NewL(); |
|
124 CleanupStack::PushL(colSet); |
|
125 colSet->AddL(TDbCol(_L("Id"), EDbColLongText, KMaxColLength)); |
|
126 |
|
127 // create table |
|
128 test2(db.CreateTable(KTableA, *colSet), KErrNone); |
|
129 CleanupStack::PopAndDestroy(colSet); |
|
130 |
|
131 // create text data to add to table |
|
132 HBufC* testText = HBufC::New(KTextDataLength); |
|
133 test(testText !=NULL ); |
|
134 TPtr ptr = testText->Des(); |
|
135 for(TInt y=0;y<KTextDataLength;++y) |
|
136 { |
|
137 ptr.Append(TChar('A')); |
|
138 } |
|
139 |
|
140 // add data to table |
|
141 RDbTable newTable; |
|
142 test2 (newTable.Open(db,KTableA),KErrNone); |
|
143 db.Begin(); |
|
144 newTable.InsertL(); |
|
145 newTable.SetColL(1, ptr); |
|
146 newTable.PutL(); |
|
147 |
|
148 test2 (db.Commit(),KErrNone); |
|
149 test2 (newTable.CountL(), 1); |
|
150 newTable.Close(); |
|
151 |
|
152 // cleanup |
|
153 delete testText; |
|
154 |
|
155 // disconnect from db and dbms |
|
156 db.Close(); |
|
157 dbs.Close(); |
|
158 |
|
159 // |
|
160 // Connect to dbms and open db |
|
161 test2(dbs.Connect(), KErrNone); |
|
162 test2(db.Open(dbs,KTestDatabase), KErrNone); |
|
163 |
|
164 // Test handle check in HDbsBuf::DoReadL() - See defect |
|
165 // If the handle check did not exist in the production code then |
|
166 // it would panic. |
|
167 |
|
168 // create test table |
|
169 RDbTable testTable; |
|
170 test2 (testTable.Open(db,KTableA),KErrNone); |
|
171 db.Begin(); |
|
172 testTable.FirstL(); |
|
173 testTable.GetL(); |
|
174 |
|
175 // Open stream |
|
176 RDbColReadStream rs; |
|
177 rs.OpenLC( testTable, 1); |
|
178 |
|
179 // Read data |
|
180 TBuf<KBufSizeDoReadL> buf; |
|
181 TRAPD(err, rs.ReadL( buf, buf.MaxLength())); |
|
182 if(err != KErrNone) |
|
183 { |
|
184 test2(err, KErrEof); |
|
185 } |
|
186 CleanupStack::PopAndDestroy(); // Close rs |
|
187 testTable.Close(); |
|
188 |
|
189 // |
|
190 // Test handle check in HDbsBuf::UnderflowL() - additional error not in defect |
|
191 // If the handle check did not exist in the production code then |
|
192 // it would panic. |
|
193 |
|
194 // create test table |
|
195 test2 (testTable.Open(db,KTableA),KErrNone); |
|
196 testTable.NextL(); |
|
197 testTable.GetL(); |
|
198 |
|
199 // Open stream |
|
200 RDbColReadStream rs2; |
|
201 rs2.OpenLC( testTable, 1); |
|
202 |
|
203 // Read data |
|
204 TBuf<KBufSizeUnderflowL> buf2; |
|
205 TRAP(err, rs2.ReadL( buf2, buf2.MaxLength())); |
|
206 if(err != KErrNone) |
|
207 { |
|
208 test2(err, KErrEof); |
|
209 } |
|
210 CleanupStack::PopAndDestroy(); // Close rs |
|
211 |
|
212 // tidy up |
|
213 testTable.Close(); |
|
214 db.Close(); |
|
215 dbs.Close(); |
|
216 } |
|
217 |
|
218 ///////////////////////////////////////////////// |
|
219 |
|
220 /** |
|
221 Cached, unused tables were breaking the iterator in CDbTableDatabase::CheckIdle |
|
222 The latter function has been re-written to restart the iteration when tables are Idle()'d |
|
223 |
|
224 @SYMTestCaseID SYSLIB-DBMS-CT-0582 |
|
225 @SYMTestCaseDesc Tests for defect number 590829 |
|
226 @SYMTestPriority Medium |
|
227 @SYMTestActions Tests by setting up failure conditions. |
|
228 @SYMTestExpectedResults Test must not fail |
|
229 @SYMREQ REQ0000 |
|
230 */ |
|
231 void Defect_590829::TestL() |
|
232 { |
|
233 test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-0582 ")); |
|
234 Print(_S("Creating test database")); |
|
235 test2 (TheDatabase.Replace(TheFs,KTestDatabase),KErrNone); |
|
236 TheDatabase.Begin(); |
|
237 test2 (TheDatabase.Execute(_L("create table A (id counter)")),KErrNone); |
|
238 test2 (TheDatabase.Execute(_L("create table B (id counter)")),KErrNone); |
|
239 test2 (TheDatabase.Execute(_L("create table C (id counter)")),KErrNone); |
|
240 test2 (TheDatabase.Commit(),KErrNone); |
|
241 // |
|
242 Print(_S("Setting up failure")); |
|
243 RDbTable tA,tB,tC; |
|
244 test2 (tA.Open(TheDatabase,KTableA),KErrNone); |
|
245 test2 (tB.Open(TheDatabase,KTableB),KErrNone); |
|
246 tB.Close(); |
|
247 test2 (tC.Open(TheDatabase,KTableC),KErrNone); |
|
248 tC.Close(); |
|
249 TheDatabase.Begin(); |
|
250 tA.Close(); |
|
251 // |
|
252 Print(_S("Testing fix")); |
|
253 test2 (TheDatabase.Commit(),KErrNone); |
|
254 TheDatabase.Destroy(); |
|
255 } |
|
256 |
|
257 ///////////////////////////////////////////////// |
|
258 |
|
259 class Defect_394751 |
|
260 { |
|
261 public: |
|
262 static void TestL(); |
|
263 static const TDesC& Name(); |
|
264 private: |
|
265 static TInt Thread(TAny*); |
|
266 static void ThreadL(); |
|
267 }; |
|
268 |
|
269 |
|
270 const TDesC& Defect_394751::Name() |
|
271 { |
|
272 _LIT(KName,"394751"); |
|
273 return KName; |
|
274 } |
|
275 |
|
276 void Defect_394751::ThreadL() |
|
277 { |
|
278 RDbs dbs; |
|
279 RDbNamedDatabase db; |
|
280 User::LeaveIfError(dbs.Connect()); |
|
281 User::LeaveIfError(db.Open(dbs,KTestDatabase)); |
|
282 db.Begin(); |
|
283 db.Begin(); /// panic now |
|
284 User::Panic(_L("T_BUG failure"),0); |
|
285 } |
|
286 |
|
287 TInt Defect_394751::Thread(TAny*) |
|
288 { |
|
289 User::SetJustInTime(EFalse); // disable debugger panic handling |
|
290 CTrapCleanup* cleanup=CTrapCleanup::New(); |
|
291 if (!cleanup) |
|
292 return KErrNoMemory; |
|
293 TRAPD(r,ThreadL()); |
|
294 delete cleanup; |
|
295 return r; |
|
296 } |
|
297 |
|
298 /** |
|
299 @SYMTestCaseID SYSLIB-DBMS-CT-0583 |
|
300 @SYMTestCaseDesc Tests for defect number 394751 |
|
301 @SYMTestPriority Medium |
|
302 @SYMTestActions Tests for thread exit status. |
|
303 @SYMTestExpectedResults Test must not fail |
|
304 @SYMREQ REQ0000 |
|
305 */ |
|
306 void Defect_394751::TestL() |
|
307 // |
|
308 // |
|
309 { |
|
310 test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-0583 ")); |
|
311 Print(_S("Creating test database")); |
|
312 test2 (TheDatabase.Replace(TheFs,KTestDatabase),KErrNone); |
|
313 TheDatabase.Close(); |
|
314 // |
|
315 RDbs dbs; |
|
316 test2 (dbs.Connect(),KErrNone); |
|
317 // |
|
318 Print(_S("Running test thread")); |
|
319 RThread t; |
|
320 _LIT(KTestThread,"Defect Fix 394751"); |
|
321 test2 (t.Create(KTestThread,&Thread,0x2000,0x1000,0x10000,0,EOwnerThread),KErrNone); |
|
322 TRequestStatus s; |
|
323 t.Logon(s); |
|
324 test2 (s.Int(),KRequestPending); |
|
325 t.Resume(); |
|
326 Print(_S("Awaiting completion")); |
|
327 User::WaitForRequest(s); |
|
328 _LIT(KCategory,"DBMS-Table"); |
|
329 test2 (t.ExitType(),EExitPanic); |
|
330 test (t.ExitCategory()==KCategory); |
|
331 test2 (t.ExitReason(),11); // begin nested transaction |
|
332 User::SetJustInTime(ETrue); // enable debugger panic handling |
|
333 t.Close(); |
|
334 // |
|
335 test2 (dbs.ResourceCount(),0); |
|
336 dbs.Close(); |
|
337 } |
|
338 |
|
339 /////////////////////////////////////////////////////////// |
|
340 |
|
341 class Defect_COMBBAR_463J5D |
|
342 { |
|
343 public: |
|
344 static void TestL(); |
|
345 static const TDesC& Name(); |
|
346 private: |
|
347 static void WaitForServerExit(); |
|
348 static TInt Thread(TAny*); |
|
349 }; |
|
350 |
|
351 const TDesC& Defect_COMBBAR_463J5D::Name() |
|
352 { |
|
353 _LIT(KName,"COMBBAR_463J5D"); |
|
354 return KName; |
|
355 } |
|
356 |
|
357 void Defect_COMBBAR_463J5D::WaitForServerExit() |
|
358 { |
|
359 _LIT(KDbmsServer,"*!DBMS server"); |
|
360 TFullName n; |
|
361 TFindThread ft(KDbmsServer); |
|
362 if (ft.Next(n)==KErrNone) |
|
363 { |
|
364 RThread t; |
|
365 if (t.Open(ft)==KErrNone) |
|
366 { |
|
367 TRequestStatus s; |
|
368 t.Logon(s); |
|
369 User::WaitForRequest(s); |
|
370 t.Close(); |
|
371 } |
|
372 } |
|
373 } |
|
374 |
|
375 TInt Defect_COMBBAR_463J5D::Thread(TAny*) |
|
376 // |
|
377 // Just try to start the server |
|
378 // |
|
379 { |
|
380 RDbs dbs; |
|
381 return dbs.Connect(); |
|
382 } |
|
383 |
|
384 /** |
|
385 @SYMTestCaseID SYSLIB-DBMS-CT-0584 |
|
386 @SYMTestCaseDesc Tests for defect number COMBBAR_463J5D |
|
387 @SYMTestPriority Medium |
|
388 @SYMTestActions Testing that defect COMBBAR_463J5D in ER5 Defects database has been fixed |
|
389 @SYMTestExpectedResults Test must not fail |
|
390 @SYMREQ REQ0000 |
|
391 */ |
|
392 void Defect_COMBBAR_463J5D::TestL() |
|
393 { |
|
394 test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-0584 ")); |
|
395 Print(_S("Wait for the server to exit")); |
|
396 WaitForServerExit(); |
|
397 // |
|
398 Print(_S("Create the launching threads")); |
|
399 RThread t1,t2; |
|
400 TRequestStatus s1,s2; |
|
401 _LIT(KThread1,"t1"); |
|
402 test2 (t1.Create(KThread1,&Thread,0x2000,0,0,EOwnerThread),KErrNone); |
|
403 t1.SetPriority(EPriorityLess); |
|
404 t1.Logon(s1); |
|
405 _LIT(KThread2,"t2"); |
|
406 test2 (t2.Create(KThread2,&Thread,0x2000,0,0,EOwnerThread),KErrNone); |
|
407 t2.SetPriority(EPriorityLess); |
|
408 t2.Logon(s2); |
|
409 // |
|
410 Print(_S("Run the threads and wait")); |
|
411 t1.Resume(); |
|
412 t2.Resume(); |
|
413 User::WaitForRequest(s1,s2); |
|
414 if (s1==KRequestPending) |
|
415 User::WaitForRequest(s1); |
|
416 else |
|
417 User::WaitForRequest(s2); |
|
418 // |
|
419 test2 (t1.ExitType(),EExitKill); |
|
420 if (s1.Int()!=KErrNotFound) |
|
421 test2 (s1.Int(),KErrNone); |
|
422 test2 (t2.ExitType(),EExitKill); |
|
423 if (s2.Int()!=KErrNotFound) |
|
424 test2 (s2.Int(),KErrNone); |
|
425 t1.Close(); |
|
426 t2.Close(); |
|
427 } |
|
428 |
|
429 ///////////////////////////////////////////////////////// |
|
430 |
|
431 class Defect_EDNATHE_48AEZW |
|
432 { |
|
433 public: |
|
434 static void TestL(); |
|
435 static const TDesC& Name(); |
|
436 }; |
|
437 |
|
438 const TDesC& Defect_EDNATHE_48AEZW::Name() |
|
439 { |
|
440 _LIT(KName,"EDNATHE_48AEZW"); |
|
441 return KName; |
|
442 } |
|
443 /** |
|
444 @SYMTestCaseID SYSLIB-DBMS-CT-0585 |
|
445 @SYMTestCaseDesc Tests for defect number EDNATHE_48AEZW |
|
446 @SYMTestPriority Medium |
|
447 @SYMTestActions Tests for navigation and deletion |
|
448 @SYMTestExpectedResults Test must not fail |
|
449 @SYMREQ REQ0000 |
|
450 */ |
|
451 void Defect_EDNATHE_48AEZW::TestL() |
|
452 { |
|
453 test.Next(_L(" @SYMTestCaseID:SYSLIB-DBMS-CT-0585 ")); |
|
454 Print(_S("Set up database")); |
|
455 test2 (TheDatabase.Replace(TheFs,KTestDatabase),KErrNone); |
|
456 test2 (TheDatabase.Begin(),KErrNone); |
|
457 test2 (TheDatabase.Execute(_L("create table A (id counter)")),KErrNone); |
|
458 RDbView v1; |
|
459 test2 (v1.Prepare(TheDatabase,_L("select * from A"),v1.EInsertOnly),KErrNone); |
|
460 test2 (v1.EvaluateAll(),KErrNone); |
|
461 for (TInt ii=0;ii<4;++ii) |
|
462 { |
|
463 v1.InsertL(); |
|
464 v1.PutL(); |
|
465 } |
|
466 test2 (TheDatabase.Commit(),KErrNone); |
|
467 v1.Close(); |
|
468 // |
|
469 Print(_S("test navigation")); |
|
470 test2 (v1.Prepare(TheDatabase,_L("select * from A where id=0")),KErrNone); |
|
471 test2 (v1.EvaluateAll(),KErrNone); |
|
472 v1.FirstL(); |
|
473 RDbView v2; |
|
474 test2 (v2.Prepare(TheDatabase,_L("select * from A where id=1")),KErrNone); |
|
475 test2 (v2.EvaluateAll(),KErrNone); |
|
476 v2.FirstL(); |
|
477 v2.DeleteL(); |
|
478 TRAPD(r, v1.NextL()); |
|
479 test2 (r,KErrNone); |
|
480 test (v1.AtEnd()); |
|
481 v2.Close(); |
|
482 // |
|
483 Print(_S("test deletion")); |
|
484 v1.FirstL(); |
|
485 test2 (v2.Prepare(TheDatabase,_L("select * from A where id=2")),KErrNone); |
|
486 test2 (v2.EvaluateAll(),KErrNone); |
|
487 v2.FirstL(); |
|
488 v2.DeleteL(); |
|
489 TRAP(r,v1.DeleteL()); |
|
490 test2 (r,KErrNone); |
|
491 TRAP(r, v1.NextL()); |
|
492 test2 (r,KErrNone); |
|
493 test (v1.AtEnd()); |
|
494 // |
|
495 v1.Close(); |
|
496 v2.Close(); |
|
497 TheDatabase.Close(); |
|
498 } |
|
499 |
|
500 ///////////////////////////////////////////////////////// |
|
501 |
|
502 static void NextTest(const TDesC& aName) |
|
503 { |
|
504 TBuf<80> buf; |
|
505 buf=_S("Checking Defect "); |
|
506 buf+=aName; |
|
507 test.Next(buf); |
|
508 } |
|
509 |
|
510 template <typename T> |
|
511 struct RunTest |
|
512 { |
|
513 RunTest() |
|
514 { |
|
515 const TDesC& name = T::Name(); |
|
516 NextTest(name); |
|
517 TRAPD(r,T::TestL()); |
|
518 test2 (r,KErrNone); |
|
519 Print(_S("Defect fixed")); |
|
520 } |
|
521 }; |
|
522 |
|
523 LOCAL_C void setupTestDirectory() |
|
524 // |
|
525 // Prepare the test directory. |
|
526 // |
|
527 { |
|
528 TInt r=TheFs.Connect(); |
|
529 test(r==KErrNone); |
|
530 // |
|
531 r=TheFs.MkDir(KTestDatabase); |
|
532 test(r==KErrNone || r==KErrAlreadyExists); |
|
533 } |
|
534 |
|
535 LOCAL_C void setupCleanup() |
|
536 // |
|
537 // Initialise the cleanup stack. |
|
538 // |
|
539 { |
|
540 TheTrapCleanup=CTrapCleanup::New(); |
|
541 test(TheTrapCleanup!=NULL); |
|
542 TRAPD(r,\ |
|
543 {\ |
|
544 for (TInt i=KTestCleanupStack;i>0;i--)\ |
|
545 CleanupStack::PushL((TAny*)0);\ |
|
546 CleanupStack::Pop(KTestCleanupStack);\ |
|
547 }); |
|
548 test(r==KErrNone); |
|
549 } |
|
550 |
|
551 LOCAL_C void DeleteDataFile(const TDesC& aFullName) |
|
552 { |
|
553 RFs fsSession; |
|
554 TInt err = fsSession.Connect(); |
|
555 if(err == KErrNone) |
|
556 { |
|
557 TEntry entry; |
|
558 if(fsSession.Entry(aFullName, entry) == KErrNone) |
|
559 { |
|
560 RDebug::Print(_L("Deleting \"%S\" file.\n"), &aFullName); |
|
561 err = fsSession.SetAtt(aFullName, 0, KEntryAttReadOnly); |
|
562 if(err != KErrNone) |
|
563 { |
|
564 RDebug::Print(_L("Error %d changing \"%S\" file attributes.\n"), err, &aFullName); |
|
565 } |
|
566 err = fsSession.Delete(aFullName); |
|
567 if(err != KErrNone) |
|
568 { |
|
569 RDebug::Print(_L("Error %d deleting \"%S\" file.\n"), err, &aFullName); |
|
570 } |
|
571 } |
|
572 fsSession.Close(); |
|
573 } |
|
574 else |
|
575 { |
|
576 RDebug::Print(_L("Error %d connecting file session. File: %S.\n"), err, &aFullName); |
|
577 } |
|
578 } |
|
579 |
|
580 GLDEF_C TInt E32Main() |
|
581 // |
|
582 // Test streaming conversions. |
|
583 // |
|
584 { |
|
585 __UHEAP_MARK; |
|
586 test.Title(); |
|
587 setupTestDirectory(); |
|
588 setupCleanup(); |
|
589 // |
|
590 test.Start(_L("Verifying defect fixes")); |
|
591 RunTest<Defect_COMBBAR_463J5D>(); |
|
592 // The following short delay is needed for ccover builds only. |
|
593 // Without the pause, the kernel scheduler would intermittently |
|
594 // crash 0.3s after the last test ended. |
|
595 User::After(500000); |
|
596 test.Printf(_L("Resume test after delay.\n")); |
|
597 |
|
598 RunTest<Defect_394751>(); |
|
599 User::After(500000); |
|
600 test.Printf(_L("Resume test after delay.\n")); |
|
601 |
|
602 RunTest<Defect_590829>(); |
|
603 User::After(500000); |
|
604 test.Printf(_L("Resume test after delay.\n")); |
|
605 |
|
606 RunTest<Defect_071149>(); |
|
607 User::After(500000); |
|
608 test.Printf(_L("Resume test after delay.\n")); |
|
609 |
|
610 RunTest<Defect_EDNATHE_48AEZW>(); |
|
611 |
|
612 // clean up data files used by this test - must be done before call to End() - DEF047652 |
|
613 ::DeleteDataFile(KTestDatabase); |
|
614 |
|
615 test.End(); |
|
616 // |
|
617 delete TheTrapCleanup; |
|
618 |
|
619 TheFs.Close(); |
|
620 test.Close(); |
|
621 __UHEAP_MARKEND; |
|
622 return 0; |
|
623 } |