diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-11-20 17:05:22 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-11-20 17:05:22 +0100 |
commit | 0daa47af4401f10c58016437ab05d5cc57a2f50d (patch) | |
tree | b22ee1cf85dae0a32f2a1360cfdd8e144eec9f74 /test/test-gactionmuxer.cpp | |
parent | f541df4bd1d88602d10566af519c5aeceb3de0b7 (diff) | |
download | ayatana-indicator-messages-0daa47af4401f10c58016437ab05d5cc57a2f50d.tar.gz ayatana-indicator-messages-0daa47af4401f10c58016437ab05d5cc57a2f50d.tar.bz2 ayatana-indicator-messages-0daa47af4401f10c58016437ab05d5cc57a2f50d.zip |
test-gactionmuxer: don't spew warnings that are expected
Diffstat (limited to 'test/test-gactionmuxer.cpp')
-rw-r--r-- | test/test-gactionmuxer.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test-gactionmuxer.cpp b/test/test-gactionmuxer.cpp index 78e808f..5c98c90 100644 --- a/test/test-gactionmuxer.cpp +++ b/test/test-gactionmuxer.cpp @@ -46,17 +46,34 @@ TEST(GActionMuxerTest, Sanity) { g_type_init (); #endif + g_test_expect_message ("Indicator-Messages", G_LOG_LEVEL_CRITICAL, "*G_IS_ACTION_MUXER*"); g_action_muxer_insert (NULL, NULL, NULL); + g_test_assert_expected_messages (); + + g_test_expect_message ("Indicator-Messages", G_LOG_LEVEL_CRITICAL, "*G_IS_ACTION_MUXER*"); g_action_muxer_remove (NULL, NULL); + g_test_assert_expected_messages (); muxer = g_action_muxer_new (); g_action_muxer_insert (muxer, NULL, NULL); g_action_muxer_remove (muxer, NULL); + + g_test_expect_message ("Indicator-Messages", G_LOG_LEVEL_CRITICAL, "*NULL*"); EXPECT_FALSE (g_action_group_has_action (G_ACTION_GROUP (muxer), NULL)); + g_test_assert_expected_messages (); + + g_test_expect_message ("Indicator-Messages", G_LOG_LEVEL_CRITICAL, "*NULL*"); EXPECT_FALSE (g_action_group_get_action_enabled (G_ACTION_GROUP (muxer), NULL)); + g_test_assert_expected_messages (); + + g_test_expect_message ("Indicator-Messages", G_LOG_LEVEL_CRITICAL, "*NULL*"); EXPECT_FALSE (g_action_group_query_action (G_ACTION_GROUP (muxer), NULL, NULL, NULL, NULL, NULL, NULL)); + g_test_assert_expected_messages (); + + g_test_expect_message ("GLib-GIO", G_LOG_LEVEL_CRITICAL, "*NULL*"); g_action_group_activate_action (G_ACTION_GROUP (muxer), NULL, NULL); + g_test_assert_expected_messages (); g_object_unref (muxer); } |