From ab024f28f6b304d9440a33f019461d34949e37ec Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Mon, 30 Sep 2024 15:40:47 +0100 Subject: [PATCH] puts() debugging --- tests/miral/config_file.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/miral/config_file.cpp b/tests/miral/config_file.cpp index 1a592b1db3..d86e2682ae 100644 --- a/tests/miral/config_file.cpp +++ b/tests/miral/config_file.cpp @@ -60,6 +60,11 @@ class PendingLoad cv.notify_one(); } + ~PendingLoad() + { + puts("====>> After miral::TestServer::~TestConfigFile() <<===="); + } + private: std::mutex mutex; std::condition_variable cv; @@ -92,6 +97,18 @@ struct TestConfigFile : PendingLoad, miral::TestServer miral::TestServer::SetUp(); ON_CALL(*this, load(testing::_, testing::_)).WillByDefault([this]{ notify_load(); }); } + + void TearDown() override + { + puts("====>> Before miral::TestServer::TearDown() <<===="); + miral::TestServer::TearDown(); + puts("====>> After miral::TestServer::TearDown() <<===="); + } + + ~TestConfigFile() + { + puts("====>> Before miral::TestServer::~TestConfigFile() <<===="); + } }; char const* const home = "/tmp/test_reloading_config_file/home";