aboutsummaryrefslogtreecommitdiff
path: root/tests/utils
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-03-22 16:01:47 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-03-22 16:01:47 -0500
commit4f8a17f23a0bba7da7654c147ca377e271abe0db (patch)
tree3e564cececf09842f7e758b74b0850e3693ab2b9 /tests/utils
parenta5f330f6b73101d7bbdeadc6a5f53b8da3349999 (diff)
downloadayatana-indicator-display-4f8a17f23a0bba7da7654c147ca377e271abe0db.tar.gz
ayatana-indicator-display-4f8a17f23a0bba7da7654c147ca377e271abe0db.tar.bz2
ayatana-indicator-display-4f8a17f23a0bba7da7654c147ca377e271abe0db.zip
add tests for not showing snap decisions in greeter mode
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/adbd-server.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/utils/adbd-server.h b/tests/utils/adbd-server.h
index 968c1f0..5e66379 100644
--- a/tests/utils/adbd-server.h
+++ b/tests/utils/adbd-server.h
@@ -73,7 +73,7 @@ private:
auto client_socket = g_socket_accept(server_socket, m_cancellable, &error);
if (error != nullptr) {
if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
- g_warning("GAdbdServer: Error accepting socket connection: %s", error->message);
+ g_message("GAdbdServer: Error accepting socket connection: %s", error->message);
g_clear_error(&error);
break;
}
@@ -90,7 +90,7 @@ private:
&error);
if (error != nullptr) {
if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
- g_warning("GAdbdServer: Error sending request: %s", error->message);
+ g_message("GAdbdServer: Error sending request: %s", error->message);
g_clear_error(&error);
g_clear_object(&client_socket);
break;
@@ -106,10 +106,10 @@ private:
&error);
if (error != nullptr) {
if (!g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
- g_warning("GAdbdServer: Error reading response: %s", error->message);
+ g_message("GAdbdServer: Error reading response: %s", error->message);
g_clear_error(&error);
g_clear_object(&client_socket);
- break;
+ continue;
}
const std::string response(buf, std::string::size_type(n_bytes));
g_message("server got response: %s", response.c_str());