X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.test.cc;h=0f0db829c1022ef40ac81b52cbd2e8751a970cbe;hb=3863d46dd898b7bc35ea8c6ccd8563b18762a6b6;hp=7706bcd11e526923f78b9a0e6b413a47d1a3259f;hpb=d2459b6c8249291588fd3d0d125ed3d38e003b55;p=senf.git diff --git a/Utils/Exception.test.cc b/Utils/Exception.test.cc index 7706bcd..0f0db82 100644 --- a/Utils/Exception.test.cc +++ b/Utils/Exception.test.cc @@ -21,18 +21,18 @@ // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /** \file - \brief Exception.test unit tests */ + \brief Exception unit tests */ //#include "Exception.test.hh" //#include "Exception.test.ih" // Custom includes #include "Exception.hh" +#include +#include #include "../Utils/auto_unit_test.hh" #include -#include -#include #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// @@ -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; }