Build: update docker build scripts
[marnav.git] / test / nmea / exception_helper.hpp
blob64110a0473f4b4c1e83a9afccedc5659370d796a
1 #ifndef TEST_NMEA_EXCEPTION_HELPER_HPP
2 #define TEST_NMEA_EXCEPTION_HELPER_HPP
4 #define EXPECT_EXCEPTION_STREQ(action, exception_type, s) \
5 try { \
6 { \
7 action; \
8 } \
9 FAIL() << "must not be reached"; \
10 } catch (exception_type & e) { \
11 EXPECT_STREQ(s, e.what()); \
12 } catch (...) { \
13 FAIL() << "unexpected exception caught"; \
16 #endif