Files
rippled/src/test/basics/DetectCrash_test.cpp

27 lines
534 B
C++

#include <xrpl/beast/unit_test/suite.h>
#include <exception>
namespace xrpl::test {
struct DetectCrash_test : public beast::unit_test::Suite
{
void
testDetectCrash()
{
testcase("Detect Crash");
// Kill the process. This is used to test that the multi-process
// unit test will correctly report the crash.
std::terminate();
}
void
run() override
{
testDetectCrash();
}
};
BEAST_DEFINE_TESTSUITE_MANUAL(DetectCrash, basics, beast);
} // namespace xrpl::test