#include "MegaApplication.h" #define CATCH_CONFIG_RUNNER #include #include int main( int argc, char* argv[] ) { MegaApplication app(argc, argv); trompeloeil::set_reporter([]( trompeloeil::severity s, const char* file, unsigned long line, std::string const& msg) { std::ostringstream os; if (line) os << file << ':' << line << '\n'; os << msg; auto failure = os.str(); if (s == trompeloeil::severity::fatal) { FAIL(failure); } else { CAPTURE(failure); CHECK(failure.empty()); } }); int result = Catch::Session().run( argc, argv ); return ( result < 0xff ? result : 0xff ); }