Lines Matching refs:expected_exception
135 #define ATF_REQUIRE_THROW(expected_exception, statement) \ argument
141 << ": " #statement " did not throw " #expected_exception \
144 } catch (const expected_exception&) { \
148 "unexpected error (not " #expected_exception "): " \
154 "unexpected error (not " #expected_exception ")"; \
159 #define ATF_REQUIRE_THROW_RE(expected_exception, regexp, statement) \ argument
165 << ": " #statement " did not throw " #expected_exception \
168 } catch (const expected_exception& e) { \
172 << ": " #statement " threw " #expected_exception "(" \
180 "unexpected error (not " #expected_exception "): " \
186 "unexpected error (not " #expected_exception ")"; \