| 362 | } |
| 363 | |
| 364 | void TestFixture::run(const std::set<std::string> &tests) |
| 365 | { |
| 366 | testsToRun = tests; |
| 367 | try { |
| 368 | if (quiet_tests) { |
| 369 | std::cout << '\n' << classname << ':'; |
| 370 | SUPPRESS; |
| 371 | run(); |
| 372 | } |
| 373 | else |
| 374 | run(); |
| 375 | } |
| 376 | catch (const InternalError& e) { |
| 377 | ++fails_counter; |
| 378 | errmsg << classname << "::" << mTestname << " - InternalError: " << e.errorMessage << std::endl; |
| 379 | } |
| 380 | catch (const std::exception& error) { |
| 381 | ++fails_counter; |
| 382 | errmsg << classname << "::" << mTestname << " - Exception: " << error.what() << std::endl; |
| 383 | } |
| 384 | catch (...) { |
| 385 | ++fails_counter; |
| 386 | errmsg << classname << "::" << mTestname << " - Unknown exception" << std::endl; |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | void TestFixture::processOptions(const options& args) |
| 391 | { |