Fix Build-Depends in debian/control
[senf.git] / Utils / Exception.test.cc
index 7706bcd..0f0db82 100644 (file)
 // 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 <boost/format.hpp>
+#include <errno.h>
 
 #include "../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
-#include <boost/format.hpp>
-#include <errno.h>
 
 #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;
         }