Revert behaviour change in g_data_input_stream_read_line

svn path=/trunk/; revision=7720
This commit is contained in:
Matthias Clasen
2008-12-01 19:02:58 +00:00
parent 52bfda3aea
commit e959473234
3 changed files with 9 additions and 7 deletions

View File

@@ -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++;
}
}