]>
Commit | Line | Data |
---|---|---|
1 | // | |
2 | // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com) | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | // | |
7 | // Official repository: https://github.com/boostorg/json | |
8 | // | |
9 | ||
10 | #include "test_suite.hpp" | |
11 | ||
12 | #include <iostream> | |
13 | #ifdef _MSC_VER | |
14 | #include <crtdbg.h> | |
15 | #endif | |
16 | ||
17 | // Simple main used to produce stand | |
18 | // alone executables that run unit tests. | |
19 | int main(int argc, char const* const* argv) | |
20 | { | |
21 | #ifdef _MSC_VER | |
22 | { | |
23 | int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); | |
24 | flags |= _CRTDBG_LEAK_CHECK_DF; | |
25 | _CrtSetDbgFlag(flags); | |
26 | } | |
27 | #endif | |
28 | ||
29 | ::test_suite::debug_stream log(std::cerr); | |
30 | return ::test_suite::run(log, argc, argv); | |
31 | } |