From: Andrei Pavel Date: Wed, 26 Feb 2025 09:04:57 +0000 (+0200) Subject: [#3731] Fix crash caused by destruction order in d2 tests X-Git-Tag: Kea-2.7.7~160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b42c802f484643d01fcddfdf945df2cf531d969;p=thirdparty%2Fkea.git [#3731] Fix crash caused by destruction order in d2 tests Co-authored by: Razvan Becheriu --- 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.