X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fauto_unit_test.hh;h=c12bb7d90e7c8d41e52fbe306703dfc8408ee5ce;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=b2e60ae5a6ee23536311c7c44092b6c5a3ae90e5;hpb=9e7071473642404359c8b7a88c78fe02f00baf16;p=senf.git diff --git a/Utils/auto_unit_test.hh b/Utils/auto_unit_test.hh index b2e60ae..c12bb7d 100644 --- a/Utils/auto_unit_test.hh +++ b/Utils/auto_unit_test.hh @@ -33,10 +33,11 @@ (with possibliy adjusted path). */ -#ifndef HH_auto_unit_test_ -#define HH_auto_unit_test_ 1 +#ifndef HH_SENF_Utils_auto_unit_test_ +#define HH_SENF_Utils_auto_unit_test_ 1 // Custom includes +#include #include //#include "auto_unit_test.mpp" @@ -57,7 +58,7 @@ /** \brief Check for compile failure - COMPILE_RAIL() is used to check, that a certain piece of code will produce a compile time + COMPILE_FAIL() is used to check, that a certain piece of code will produce a compile time failure. \code @@ -90,7 +91,7 @@ */ #define SENF_CHECK_NO_THROW(expr) \ BOOST_CHECK_NO_THROW( \ - try { (void) expr ; } \ + try { expr ; } \ catch (std::exception & e) { std::cerr << e.what() << std::endl; throw; } ) ///////////////////////////////hh.e////////////////////////////////////////