From: Matthias Clasen Date: Sun, 2 Jun 2013 05:47:19 +0000 (-0400) Subject: Improve unix stream test coverage X-Git-Tag: 2.37.2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc35c3487eb926417261035cfc834b0b716530e1;p=platform%2Fupstream%2Fglib.git Improve unix stream test coverage --- diff --git a/gio/tests/unix-streams.c b/gio/tests/unix-streams.c index 79a5711..dafaf66 100644 --- a/gio/tests/unix-streams.c +++ b/gio/tests/unix-streams.c @@ -328,6 +328,8 @@ test_basic (void) g_assert (!g_unix_input_stream_get_close_fd (is)); g_assert_cmpint (g_unix_input_stream_get_fd (is), ==, 0); + g_assert (!g_input_stream_has_pending (G_INPUT_STREAM (is))); + g_object_unref (is); os = G_UNIX_OUTPUT_STREAM (g_unix_output_stream_new (1, TRUE)); @@ -342,6 +344,8 @@ test_basic (void) g_assert (!g_unix_output_stream_get_close_fd (os)); g_assert_cmpint (g_unix_output_stream_get_fd (os), ==, 1); + g_assert (!g_output_stream_has_pending (G_OUTPUT_STREAM (os))); + g_object_unref (os); }