Commit 6109db27 authored by Matthias Clasen's avatar Matthias Clasen

Test a few more GIOChannel functions

parent d33f6254
......@@ -164,6 +164,9 @@ test_message (void)
g_io_channel_set_encoding (channel, NULL, NULL);
g_io_channel_set_buffered (channel, FALSE);
g_io_channel_set_flags (channel, G_IO_FLAG_NONBLOCK, NULL);
g_assert (g_io_channel_get_line_term (channel, NULL) == NULL);
g_io_channel_set_line_term (channel, "\n", 1);
g_assert_cmpstr (g_io_channel_get_line_term (channel, NULL), ==, "\n");
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment