Searched refs:expected_exception (Results 1 – 3 of 3) sorted by relevance
| /freebsd/contrib/atf/atf-c++/ |
| H A D | macros.hpp | 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 "): " \ [all …]
|
| /freebsd/contrib/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-internal.h | 1341 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \ 1344 expected_exception>::type>::type, \ 1349 " throws an exception of type " #expected_exception \ 1360 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) 1364 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \ 1370 } catch (expected_exception const&) { \ 1373 GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \ 1376 " throws an exception of type " #expected_exception \ 1382 " throws an exception of type " #expected_exception \
|
| /freebsd/contrib/googletest/googletest/include/gtest/ |
| H A D | gtest.h | 1791 #define EXPECT_THROW(statement, expected_exception) \ argument 1792 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_) 1797 #define ASSERT_THROW(statement, expected_exception) \ argument 1798 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
|