diff options
Diffstat (limited to 'test/unit/UnitTester.cxx')
-rw-r--r-- | test/unit/UnitTester.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/unit/UnitTester.cxx b/test/unit/UnitTester.cxx index 829a322fc..048abf24e 100644 --- a/test/unit/UnitTester.cxx +++ b/test/unit/UnitTester.cxx @@ -1,11 +1,16 @@ // UnitTester.cpp : Defines the entry point for the console application. // +// Catch uses std::uncaught_exception which is deprecated in C++17. +// This define silences a warning from Visual C++. +#define _SILENCE_CXX17_UNCAUGHT_EXCEPTION_DEPRECATION_WARNING + #include <cstdio> #include <cstdarg> #include "Platform.h" +#define CATCH_CONFIG_WINDOWS_CRTDBG #define CATCH_CONFIG_RUNNER #include "catch.hpp" @@ -29,10 +34,8 @@ void Platform::DebugPrintf(const char *format, ...) { } -int main(int argc, char* const argv[]) { +int main(int argc, char* argv[]) { const int result = Catch::Session().run(argc, argv); - _CrtDumpMemoryLeaks(); - return result; } |