From: Matthias Clasen Date: Tue, 31 Dec 2013 14:19:50 +0000 (-0500) Subject: Improve GIOChannel test coverage X-Git-Tag: 2.39.3~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e6d86877ddf9961b6dbe37d02a2ce2d31b9d6cf;p=platform%2Fupstream%2Fglib.git Improve GIOChannel test coverage --- diff --git a/glib/tests/protocol.c b/glib/tests/protocol.c index cf5e9fd..d6286ff 100644 --- a/glib/tests/protocol.c +++ b/glib/tests/protocol.c @@ -172,6 +172,10 @@ test_message (void) g_assert_cmpint (*line_term, ==, '\n'); g_assert_cmpint (line_term_len, ==, 1); + g_assert (g_io_channel_get_close_on_unref (channel)); + g_assert (g_io_channel_get_encoding (channel) == NULL); + g_assert (!g_io_channel_get_buffered (channel)); + io_source = g_io_add_watch (channel, G_IO_IN, test_message_cb1, tlb); child_source = g_child_watch_add (pid, test_message_cb2, loop);