You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
340 B
C++
14 lines
340 B
C++
#define CATCH_CONFIG_RUNNER
|
|
#include <catch.hpp>
|
|
#include <boost/exception/diagnostic_information.hpp>
|
|
|
|
static std::string info(const boost::exception& e)
|
|
{ return boost::diagnostic_information(e); }
|
|
|
|
int main(int argc, const char** argv)
|
|
{
|
|
Catch::ExceptionTranslatorRegistrar x{info};
|
|
|
|
return Catch::Session().run( argc, argv );
|
|
}
|