mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 14:50:54 +00:00
27 lines
534 B
C++
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
|