Exemplo n.º 1
0
 void
 run(std::function <void(void)> f)
 {
     try
     {
         f();
     }
     catch(suite::abort_exception const&)
     {
     }
     catch(std::exception const& e)
     {
         s_->fail("unhandled exception: " +
             std::string(e.what()));
     }
     catch(...)
     {
         s_->fail("unhandled exception");
     }
 }