From 7ec8b4d7450b7a4558822d1c3f8fbe178e505690 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 8 Oct 2015 18:14:10 +0200 Subject: 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. --- tests/document-output-stream.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/document-output-stream.c b/tests/document-output-stream.c index 75587c50..03df8aa3 100644 --- a/tests/document-output-stream.c +++ b/tests/document-output-stream.c @@ -57,6 +57,9 @@ test_consecutive_write (const gchar *inbuf, n += w; } 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_assert_cmpstr (inbuf, ==, b); -- cgit v1.2.1