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

View File

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