X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fauto_unit_test.hh;h=a12669225cf5675fa41ae527daba9030f188356d;hb=bf6bdcb90de19ed474535d41c5519518921b717b;hp=c45d6fd08fdf56af28b4bdbc3376eb2282561939;hpb=259da4c692259311c6ec99566b57f5ed1e68e93e;p=senf.git diff --git a/Utils/auto_unit_test.hh b/Utils/auto_unit_test.hh index c45d6fd..a126692 100644 --- a/Utils/auto_unit_test.hh +++ b/Utils/auto_unit_test.hh @@ -52,6 +52,11 @@ #define COMPILE_FAIL(n) void n() +#define SENF_CHECK_NO_THROW(expr) \ + BOOST_CHECK_NO_THROW( \ + try { (void) expr ; } \ + catch (std::exception & e) { std::cerr << e.what() << std::endl; throw; } ) + ///////////////////////////////hh.e//////////////////////////////////////// //#include "auto_unit_test.cci" //#include "auto_unit_test.ct"