janwas
aebf8cbf68
- 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.
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
// Got to be consistent with what the rest of the source files do before
|
|
// including precompiled.h, so that the PCH works correctly
|
|
#ifndef CXXTEST_RUNNING
|
|
#define CXXTEST_RUNNING
|
|
#endif
|
|
#define _CXXTEST_HAVE_STD
|
|
|
|
#include "precompiled.h"
|
|
|
|
#include <cxxtest/GlobalFixture.h>
|
|
|
|
#if OS_WIN
|
|
#include "lib/sysdep/win/wdbg_heap.h"
|
|
#endif
|
|
|
|
class LeakReporter : public CxxTest::GlobalFixture
|
|
{
|
|
virtual bool tearDownWorld()
|
|
{
|
|
// 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 OS_WIN
|
|
wdbg_heap_Enable(true);
|
|
#endif
|
|
return true;
|
|
}
|
|
|
|
virtual bool setUpWorld()
|
|
{
|
|
#if MSC_VERSION
|
|
// (Warning: the allocation numbers seem to differ by 3 when you
|
|
// run in the build process vs the debugger)
|
|
// _CrtSetBreakAlloc(1952);
|
|
#endif
|
|
return true;
|
|
}
|
|
|
|
};
|
|
|
|
static LeakReporter leakReporter;
|
|
|
|
// Definition of function from lib/self_test.h
|
|
bool ts_str_contains(const std::string& str1, const std::string& str2)
|
|
{
|
|
return str1.find(str2) != str1.npos;
|
|
}
|