diff options
author | Jeff Hostetler <jeffhostetler@me.com> | 2015-06-10 00:38:30 +0300 |
---|---|---|
committer | Jeff Hostetler <jeffhost@microsoft.com> | 2015-06-29 23:39:11 +0300 |
commit | 93b42728952487941bc2b0b78a7f0080b7b3d600 (patch) | |
tree | 40acaef6813719257a32835e1b962832964ba713 /tests/main.c | |
parent | 4a0313bc4e9b20a55aa6d0922312f97df743df72 (diff) |
Include stacktrace summary in memory leak output.
Diffstat (limited to 'tests/main.c')
-rw-r--r-- | tests/main.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/main.c b/tests/main.c index 56326da1c..f67c8ffbc 100644 --- a/tests/main.c +++ b/tests/main.c @@ -1,10 +1,3 @@ - -#if defined(GIT_MSVC_CRTDBG) -/* Enable MSVC CRTDBG memory leak reporting. See src/util.h for details. */ -#include <stdlib.h> -#include <crtdbg.h> -#endif - #include "clar_libgit2.h" #include "clar_libgit2_trace.h" @@ -16,18 +9,6 @@ int main(int argc, char *argv[]) { int res; -#if defined(GIT_MSVC_CRTDBG) - _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); - - _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); - _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); - _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_DEBUG | _CRTDBG_MODE_FILE); - - _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR); - _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR); - _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); -#endif - clar_test_init(argc, argv); git_libgit2_init(); |