From 0b42c802f484643d01fcddfdf945df2cf531d969 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Wed, 26 Feb 2025 11:04:57 +0200 Subject: [PATCH] [#3731] Fix crash caused by destruction order in d2 tests Co-authored by: Razvan Becheriu --- src/bin/d2/tests/d2_process_unittests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/d2/tests/d2_process_unittests.cc b/src/bin/d2/tests/d2_process_unittests.cc index b5a8e28b52..ffdf39281f 100644 --- a/src/bin/d2/tests/d2_process_unittests.cc +++ b/src/bin/d2/tests/d2_process_unittests.cc @@ -20,7 +20,6 @@ #include #include -#include using namespace std; using namespace isc; @@ -74,6 +73,7 @@ public: /// @brief Destructor virtual ~D2ProcessTest() { + D2Controller::instance().reset(); } /// @brief Callback that will invoke shutdown method.