1 #ifndef TUT_RESULT_H_GUARD
2 #define TUT_RESULT_H_GUARD
3 #include <tut/tut_config.hpp>
7 #if defined(TUT_USE_RTTI)
8 #if (defined(_MSC_VER) && !defined(_CPPRTTI)) || (defined(__GNUC__) && !defined(__GXX_RTTI))
13 #if defined(TUT_USE_RTTI)
20 #if defined(TUT_USE_RTTI)
22 inline std::string type_name(
const T& t)
24 return typeid(t).name();
28 inline std::string type_name(
const T& t)
30 return "Unknown type, RTTI disabled";
33 inline std::string type_name(
const std::exception&)
35 return "Unknown std::exception, RTTI disabled";
40 #if defined(TUT_USE_POSIX)
41 struct test_result_posix
48 virtual ~test_result_posix()
108 std::string exception_typeid;
142 const std::exception&
ex)
148 exception_typeid(type_name(ex))
156 const std::string& ex_typeid,
157 const std::string& msg)
163 exception_typeid(ex_typeid)
test_result()
Definition: tut_result.hpp:113
std::string group
Definition: tut_result.hpp:74
test_result(const std::string &grp, int pos, const std::string &test_name, result_type res, const std::string &ex_typeid, const std::string &msg)
Definition: tut_result.hpp:154
Definition: tut_exception.hpp:213
test_result(const std::string &grp, int pos, const std::string &test_name, result_type res, const std::exception &ex)
Definition: tut_result.hpp:140
test finished successfully
Definition: tut_result.hpp:91
result_type
Definition: tut_result.hpp:89
Definition: tut_exception.hpp:189
int test
Definition: tut_result.hpp:79
std::string name
Definition: tut_result.hpp:84
test finished successfully, but test destructor throwed
Definition: tut_result.hpp:94
test_result(const std::string &grp, int pos, const std::string &test_name, result_type res)
Definition: tut_result.hpp:126
test failed with ensure() or fail() methods
Definition: tut_result.hpp:92
std::string message
Definition: tut_result.hpp:107
Definition: tut_result.hpp:69
test forced test application to terminate abnormally
Definition: tut_result.hpp:95
test throwed an exceptions
Definition: tut_result.hpp:93
Definition: tut_result.hpp:55