mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Revert behaviour change in g_data_input_stream_read_line
svn path=/trunk/; revision=7720
This commit is contained in:
@@ -87,12 +87,8 @@ test_read_lines (GDataStreamNewlineType newline_type)
|
||||
data = g_data_input_stream_read_line (G_DATA_INPUT_STREAM (stream), &length, NULL, &error);
|
||||
if (data)
|
||||
{
|
||||
char *expected;
|
||||
|
||||
expected = g_strconcat (lines[line], endl[newline_type], NULL);
|
||||
g_assert_cmpstr (data, ==, expected);
|
||||
g_assert_cmpstr (data, ==, lines[line]);
|
||||
g_assert_no_error (error);
|
||||
g_free (expected);
|
||||
line++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user