Adjust the document-output-stream test to the new buffering strategy.
Test was still failing because it checked the document content before closing. This commit forces document flush before this check, making the test successful.
This commit is contained in:
parent
43903ad12b
commit
7ec8b4d745
|
@ -57,6 +57,9 @@ test_consecutive_write (const gchar *inbuf,
|
||||||
n += w;
|
n += w;
|
||||||
} while (w != 0);
|
} while (w != 0);
|
||||||
|
|
||||||
|
g_assert(g_output_stream_flush (out, NULL, &err) == TRUE);
|
||||||
|
g_assert_no_error (err);
|
||||||
|
|
||||||
g_object_get (G_OBJECT (doc), "text", &b, NULL);
|
g_object_get (G_OBJECT (doc), "text", &b, NULL);
|
||||||
|
|
||||||
g_assert_cmpstr (inbuf, ==, b);
|
g_assert_cmpstr (inbuf, ==, b);
|
||||||
|
|
Loading…
Reference in New Issue