equal
deleted
inserted
replaced
664 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
664 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
665 test.Printf(_L("\n")); |
665 test.Printf(_L("\n")); |
666 |
666 |
667 TInt orgSessionCount; |
667 TInt orgSessionCount; |
668 r = controlIo(TheFs,theDrive, KControlIoSessionCount, orgSessionCount); |
668 r = controlIo(TheFs,theDrive, KControlIoSessionCount, orgSessionCount); |
669 test(r==KErrNone); |
669 test_KErrNone(r); |
670 test.Printf(_L("Session count start=%d\n"),orgSessionCount); |
670 test.Printf(_L("Session count start=%d\n"),orgSessionCount); |
671 |
671 |
672 TInt orgObjectCount; |
672 TInt orgObjectCount; |
673 r = controlIo(TheFs,theDrive, KControlIoObjectCount, orgObjectCount); |
673 r = controlIo(TheFs,theDrive, KControlIoObjectCount, orgObjectCount); |
674 test(r==KErrNone); |
674 test_KErrNone(r); |
675 test.Printf(_L("Object count start=%d\n"),orgObjectCount); |
675 test.Printf(_L("Object count start=%d\n"),orgObjectCount); |
676 |
676 |
677 |
677 |
678 TPckgBuf<TIOCacheValues> pkgOrgValues; |
678 TPckgBuf<TIOCacheValues> pkgOrgValues; |
679 TIOCacheValues& orgValues=pkgOrgValues(); |
679 TIOCacheValues& orgValues=pkgOrgValues(); |
715 // Close and then re-open the main file server session to force the closure of |
715 // Close and then re-open the main file server session to force the closure of |
716 // any sub-sessions which may have been left open.... |
716 // any sub-sessions which may have been left open.... |
717 // NB: This won't help if the test has opened another session & left sub-sessions open. |
717 // NB: This won't help if the test has opened another session & left sub-sessions open. |
718 TheFs.Close(); |
718 TheFs.Close(); |
719 r=TheFs.Connect(); |
719 r=TheFs.Connect(); |
720 test(r==KErrNone); |
720 test_KErrNone(r); |
721 |
721 |
722 // Display the file cache stats before closing the file queue |
722 // Display the file cache stats before closing the file queue |
723 TFileCacheStats endFileCacheStats; |
723 TFileCacheStats endFileCacheStats; |
724 r = controlIo(TheFs,theDrive, KControlIoFileCacheStats, endFileCacheStats); |
724 r = controlIo(TheFs,theDrive, KControlIoFileCacheStats, endFileCacheStats); |
725 test_Value(r, r == KErrNone || r == KErrNotSupported); |
725 test_Value(r, r == KErrNone || r == KErrNotSupported); |
741 test.Printf(_L("Flushing close queue...\n")); |
741 test.Printf(_L("Flushing close queue...\n")); |
742 r = TheFs.ControlIo(theDrive, KControlIoFlushClosedFiles); |
742 r = TheFs.ControlIo(theDrive, KControlIoFlushClosedFiles); |
743 test_KErrNone(r); |
743 test_KErrNone(r); |
744 |
744 |
745 r = controlIo(TheFs,theDrive, KControlIoSessionCount, endSessionCount); |
745 r = controlIo(TheFs,theDrive, KControlIoSessionCount, endSessionCount); |
746 test(r==KErrNone); |
746 test_KErrNone(r); |
747 test.Printf(_L("Session count end=%d\n"),endSessionCount); |
747 test.Printf(_L("Session count end=%d\n"),endSessionCount); |
748 |
748 |
749 r = controlIo(TheFs,theDrive, KControlIoObjectCount, endObjectCount); |
749 r = controlIo(TheFs,theDrive, KControlIoObjectCount, endObjectCount); |
750 test(r==KErrNone); |
750 test_KErrNone(r); |
751 test.Printf(_L("Object count end=%d\n"),endObjectCount); |
751 test.Printf(_L("Object count end=%d\n"),endObjectCount); |
752 |
752 |
753 if (endSessionCount == orgSessionCount && endObjectCount == orgObjectCount) |
753 if (endSessionCount == orgSessionCount && endObjectCount == orgObjectCount) |
754 break; |
754 break; |
755 |
755 |