aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-09-22 15:34:08 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-09-22 15:34:08 -0500
commitc997668e2517d414dfa52e3204e54d67540ba662 (patch)
tree8676b6e474a957f779fe41c8512cc1df2f852283 /tests
parent42e7cc5b9c1c4053112d570b94689f11219b71ce (diff)
downloadayatana-indicator-display-c997668e2517d414dfa52e3204e54d67540ba662.tar.gz
ayatana-indicator-display-c997668e2517d414dfa52e3204e54d67540ba662.tar.bz2
ayatana-indicator-display-c997668e2517d414dfa52e3204e54d67540ba662.zip
more g_debug() tracers
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/adbd-client-test.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/unit/adbd-client-test.cpp b/tests/unit/adbd-client-test.cpp
index 6506e28..20d6ee4 100644
--- a/tests/unit/adbd-client-test.cpp
+++ b/tests/unit/adbd-client-test.cpp
@@ -70,19 +70,20 @@ TEST_F(AdbdClientFixture, SocketPlumbing)
for (const auto& test : tests)
{
+g_message("%s %s thread %p starting test", G_STRLOC, G_STRFUNC, g_thread_self());
// start an AdbdClient that listens for PKRequests
std::string pk;
auto adbd_client = std::make_shared<GAdbdClient>(socket_path);
auto connection = adbd_client->on_pk_request().connect([&pk, main_thread, test](const AdbdClient::PKRequest& req){
-g_debug("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
+g_message("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
EXPECT_EQ(main_thread, g_thread_self());
-g_debug("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
+g_message("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
g_message("in on_pk_request with %s", req.public_key.c_str());
-g_debug("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
+g_message("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
pk = req.public_key;
-g_debug("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
+g_message("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
req.respond(test.response);
-g_debug("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
+g_message("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
});
// start a mock AdbdServer with to fire test key requests and wait for a response
@@ -93,9 +94,11 @@ g_debug("%s %s thread %p", G_STRLOC, G_STRFUNC, g_thread_self());
EXPECT_EQ(test.expected_response, adbd_server->m_responses.front());
// cleanup
+g_message("%s %s thread %p cleanup", G_STRLOC, G_STRFUNC, g_thread_self());
connection.disconnect();
adbd_client.reset();
adbd_server.reset();
g_unlink(socket_path.c_str());
+g_message("%s %s thread %p test exit", G_STRLOC, G_STRFUNC, g_thread_self());
}
}