Skip to content

Commit

Permalink
puts() debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Sep 30, 2024
1 parent a4fabf3 commit ab024f2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/miral/config_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class PendingLoad
cv.notify_one();
}

~PendingLoad()
{
puts("====>> After miral::TestServer::~TestConfigFile() <<====");
}

private:
std::mutex mutex;
std::condition_variable cv;
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit ab024f2

Please sign in to comment.