Home
last modified time | relevance | path

Searched refs:expected_exception (Results 1 – 1 of 1) sorted by relevance

/NextBSD/contrib/atf/atf-c++/
Dmacros.hpp135 #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 "): " \
[all …]