fix VFS bug preventing directories from being created:

- vfs_lookup: currentPath was of wrong type; simplified and fix create
logic
- archive_zip: fix: correctly handle filenames with /
- vfs: remove workaround for above bug
- io: temporarily disable block caching (works around problem with zip
file created by 7z)

add and use new wdbg_heap module (WIP)
remove mmgr

This was SVN commit r5571.
This commit is contained in:
janwas
2008-01-20 16:53:09 +00:00
parent 1700e90a15
commit aebf8cbf68
15 changed files with 197 additions and 1865 deletions
+6 -12
View File
@@ -9,6 +9,10 @@
#include <cxxtest/GlobalFixture.h>
#if OS_WIN
#include "lib/sysdep/win/wdbg_heap.h"
#endif
class LeakReporter : public CxxTest::GlobalFixture
{
virtual bool tearDownWorld()
@@ -16,19 +20,9 @@ class LeakReporter : public CxxTest::GlobalFixture
// Enable leak reporting on exit.
// (This is done in tearDownWorld so that it doesn't report 'leaks'
// if the program is aborted before finishing cleanly.)
#if HAVE_VC_DEBUG_ALLOC
int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
flags |= _CRTDBG_LEAK_CHECK_DF; // check for memory leaks
flags |= _CRTDBG_ALLOC_MEM_DF; // also check allocs using the non-debug version of new
_CrtSetDbgFlag(flags);
// Send output to stdout as well as the debug window, so it works during
// the normal build process as well as when debugging the test .exe
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
#if OS_WIN
wdbg_heap_Enable(true);
#endif
return true;
}