[glib] Slightly improve coverate for notification tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Slightly improve coverate for notification tests
- Date: Sat, 21 Dec 2013 18:22:35 +0000 (UTC)
commit 6d8ac1125e326a09dd324543ad3150f5e9159c13
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 21 10:48:40 2013 -0500
Slightly improve coverate for notification tests
gio/tests/gnotification.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gnotification.c b/gio/tests/gnotification.c
index eaf3d92..5aee544 100644
--- a/gio/tests/gnotification.c
+++ b/gio/tests/gnotification.c
@@ -48,6 +48,7 @@ activate_app (GApplication *application,
g_notification_add_button_with_target (notification, "label", "app.action2", "s", "bla");
g_application_send_notification (application, "test4", notification);
+ g_application_send_notification (application, NULL, notification);
g_dbus_connection_flush_sync (g_application_get_dbus_connection (application), NULL, NULL);
@@ -84,7 +85,11 @@ notification_received (GNotificationServer *server,
case 3:
g_assert_cmpstr (notification_id, ==, "test4");
+ break;
+ case 4:
+ g_assert (g_dbus_is_guid (notification_id));
+
g_notification_server_stop (server);
break;
}
@@ -161,7 +166,7 @@ basic (void)
g_main_loop_run (loop);
- g_assert_cmpint (received_count, ==, 4);
+ g_assert_cmpint (received_count, ==, 5);
g_assert_cmpint (removed_count, ==, 1);
g_object_unref (server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]