mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-26 22:55:53 +00:00
Add assertion that terminate clio (#994)
Fixes #893. Also added termination handler to print backtrace on crash, so fixes #929.
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#include <util/TerminationHandler.h>
|
||||
#include <util/prometheus/Prometheus.h>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
@@ -23,6 +25,7 @@
|
||||
int
|
||||
main(int argc, char** argv)
|
||||
{
|
||||
util::setTerminationHandler();
|
||||
PrometheusService::init();
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
|
||||
Reference in New Issue
Block a user