* Exception to be throwed when test desctructor throwed an exception. */
| 137 | * Exception to be throwed when test desctructor throwed an exception. |
| 138 | */ |
| 139 | struct warning : public tut_error |
| 140 | { |
| 141 | explicit warning(const std::string& msg) |
| 142 | : tut_error(msg) |
| 143 | { |
| 144 | } |
| 145 | |
| 146 | test_result::result_type result() const |
| 147 | { |
| 148 | return test_result::warn; |
| 149 | } |
| 150 | |
| 151 | virtual std::string type() const |
| 152 | { |
| 153 | return "tut::warning"; |
| 154 | } |
| 155 | |
| 156 | ~warning() throw() |
| 157 | { |
| 158 | } |
| 159 | }; |
| 160 | |
| 161 | /** |
| 162 | * Exception to be throwed when test issued SEH (Win32) |