do \
{ \
bool threw_{false}; \
try \
{ \
STATEMENT; \
} \
{ \
threw_ = true; \
if (COND) \
{ \
CELER_LOG(debug) \
<< "Ignored expected failure: " << e.details().what; \
} \
else \
{ \
ADD_FAILURE() << "'" << #STATEMENT \
<< "' failed unexpectedly: " << e.what(); \
} \
} \
catch (std::exception const& e) \
{ \
threw_ = true; \
FAIL() << "'" << #STATEMENT \
<< "' failed unexpectedly: " << e.what(); \
} \
\
EXPECT_EQ(COND, threw_); \
} while (0)
Geometry exception thrown by checked assertions.
Definition CheckedGeoTrackView.hh:230
Allow a statement to skip the test when using a certain geometry.