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:
Patrick Monnerat 2015-10-08 18:14:10 +02:00 committed by raveit65
parent 43903ad12b
commit 7ec8b4d745
1 changed files with 3 additions and 0 deletions

View File

@ -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);