X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.test.cc;h=58a2f2bf2fc2e5e1e9a7fd9a683111863fbde92a;hb=412024ed31a4ab4eaea7a4165a434f8efebee325;hp=7706bcd11e526923f78b9a0e6b413a47d1a3259f;hpb=d2459b6c8249291588fd3d0d125ed3d38e003b55;p=senf.git diff --git a/Utils/Exception.test.cc b/Utils/Exception.test.cc index 7706bcd..58a2f2b 100644 --- a/Utils/Exception.test.cc +++ b/Utils/Exception.test.cc @@ -58,7 +58,9 @@ BOOST_AUTO_UNIT_TEST(wrapException) } } catch (std::exception const & ex) { +#ifdef SENF_DEBUG BOOST_CHECK( std::string(ex.what()).find("-- \n") != std::string::npos ); +#endif BOOST_CHECK( std::string(ex.what()).find("special exception") != std::string::npos ); throw; }