diff options
author | Patrick Monnerat <[email protected]> | 2015-10-08 18:14:10 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2015-10-13 14:07:00 +0200 |
commit | 7ec8b4d7450b7a4558822d1c3f8fbe178e505690 (patch) | |
tree | 10d8f2c321dcee2ab194c70d162eb85797f98bde | |
parent | 43903ad12b880e64a3d0551b90b27aa4621a2ab8 (diff) | |
download | pluma-7ec8b4d7450b7a4558822d1c3f8fbe178e505690.tar.bz2 pluma-7ec8b4d7450b7a4558822d1c3f8fbe178e505690.tar.xz |
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.
-rw-r--r-- | tests/document-output-stream.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |