summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-06-02 01:47:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-06-02 01:47:19 -0400
commitfc35c3487eb926417261035cfc834b0b716530e1 (patch)
treebac2948c3c7ff758fb9b8fd87354494eea347b48
parent8f655149e9d0bb48fc7ebb2c29bba13924f13056 (diff)
downloadglib-fc35c3487eb926417261035cfc834b0b716530e1.tar.gz
Improve unix stream test coverage
-rw-r--r--gio/tests/unix-streams.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/tests/unix-streams.c b/gio/tests/unix-streams.c
index 79a57119b..dafaf66aa 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);
}