Simple main used to produce stand alone executables that run unit tests.
| 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 | } |