Use plain throw in unit test framework

This commit is contained in:
Vinnie Falco
2019-12-06 19:39:03 -08:00
parent a986831c1a
commit 2f7ddb69ee
2 changed files with 3 additions and 4 deletions

View File

@@ -11,7 +11,6 @@
#define BOOST_BEAST_UNIT_TEST_SUITE_HPP #define BOOST_BEAST_UNIT_TEST_SUITE_HPP
#include <boost/beast/_experimental/unit_test/runner.hpp> #include <boost/beast/_experimental/unit_test/runner.hpp>
#include <boost/throw_exception.hpp>
#include <ostream> #include <ostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
@@ -566,7 +565,7 @@ fail(std::string const& reason)
if(abort_) if(abort_)
{ {
aborted_ = true; aborted_ = true;
BOOST_THROW_EXCEPTION(abort_exception()); throw abort_exception();
} }
} }
@@ -584,7 +583,7 @@ suite::
propagate_abort() propagate_abort()
{ {
if(abort_ && aborted_) if(abort_ && aborted_)
BOOST_THROW_EXCEPTION(abort_exception()); throw abort_exception();
} }
template<class> template<class>

View File

@@ -86,7 +86,7 @@ public:
throwing_handler(throwing_handler&&) throwing_handler(throwing_handler&&)
{ {
BOOST_THROW_EXCEPTION(std::exception{}); throw std::exception{};
} }
void void