equal
deleted
inserted
replaced
475 CleanupStack::PopAndDestroy(testStore); |
475 CleanupStack::PopAndDestroy(testStore); |
476 |
476 |
477 (void)TheFs.Delete(msvTestPath); |
477 (void)TheFs.Delete(msvTestPath); |
478 } |
478 } |
479 |
479 |
|
480 /** |
|
481 @SYMTestCaseID PDS-STORE-UT-4059 |
|
482 @SYMTestCaseDesc Tests for defect No ou1cimx1#422232 |
|
483 The installed help topics are not organized to Application help topics. |
|
484 @SYMTestPriority High |
|
485 @SYMTestActions Tests that the EFileWriteDirectIO is appended only when necessary, also |
|
486 test that any EFileWriteBuffered is unset (no error occurs when this is |
|
487 passed in) |
|
488 @SYMTestExpectedResults Test must not fail |
|
489 @SYMDEF ou1cimx1#422232 |
|
490 */ |
|
491 LOCAL_C void testOpenL() |
|
492 { |
|
493 _LIT(KFileName,"C:\\t_storfperm.dat"); |
|
494 |
|
495 test.Next(_L(" @SYMTestCaseID:PDS-STORE-UT-4059 ")); |
|
496 CPermanentFileStore* testStore = CPermanentFileStore::ReplaceL(TheFs, KFileName, EFileWrite|EFileWriteBuffered); |
|
497 delete testStore; |
|
498 |
|
499 (void)TheFs.Delete(KFileName); |
|
500 } |
480 |
501 |
481 // |
502 // |
482 // Prepare the test directory. |
503 // Prepare the test directory. |
483 // |
504 // |
484 LOCAL_C void setupTestDirectory() |
505 LOCAL_C void setupTestDirectory() |
564 test(r==KErrNone); |
585 test(r==KErrNone); |
565 TRAP(r,testDetachL()); |
586 TRAP(r,testDetachL()); |
566 test(r==KErrNone); |
587 test(r==KErrNone); |
567 TRAP(r,testDef039456L()); |
588 TRAP(r,testDef039456L()); |
568 test(r==KErrNone); |
589 test(r==KErrNone); |
569 |
590 TRAP(r,testOpenL()); |
|
591 test(r==KErrNone); |
|
592 |
570 //deletion of data files must be before call to .End() - DEF047652 |
593 //deletion of data files must be before call to .End() - DEF047652 |
571 TDriveUnit drive(static_cast<TUint>(RFs::GetSystemDrive())); |
594 TDriveUnit drive(static_cast<TUint>(RFs::GetSystemDrive())); |
572 TParse parse; |
595 TParse parse; |
573 parse.Set(drive.Name(), &KFileLocationSpec, NULL); |
596 parse.Set(drive.Name(), &KFileLocationSpec, NULL); |
574 ::DeleteDataFile(parse.FullName()); |
597 ::DeleteDataFile(parse.FullName()); |