Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Report leaks to debugger in addition to stderr

This branch should also close #120.
Commit
30e4dbef1c2a4742a85f5d57c84107631cce9c6c
Author
Martin Hořeňovský ·
Parents
9202a7749816

Files · Download .tar.gz

Changes

 include/internal/catch_default_main.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/internal/catch_default_main.hpp b/include/internal/catch_default_main.hpp
index 2a8b226f..466efa46 100644
--- a/include/internal/catch_default_main.hpp
+++ b/include/internal/catch_default_main.hpp
@@ -21,7 +21,7 @@ int main (int argc, char * argv[]) {
     flag |= _CRTDBG_LEAK_CHECK_DF;
     flag |= _CRTDBG_ALLOC_MEM_DF;
     _CrtSetDbgFlag(flag);
-    _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
+    _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
     _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
     // Change this to leaking allocation's number to break there
     _CrtSetBreakAlloc(-1);