[glib] Update tests for new truncate behavior



commit 453a69534c1407ccee6b66c1edd71c1e23a0cdae
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 15 20:06:25 2013 -0500

    Update tests for new truncate behavior

 gio/tests/buffered-output-stream.c |    2 +-
 gio/tests/data-output-stream.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/buffered-output-stream.c b/gio/tests/buffered-output-stream.c
index f3aed92..fc740b7 100644
--- a/gio/tests/buffered-output-stream.c
+++ b/gio/tests/buffered-output-stream.c
@@ -293,7 +293,7 @@ test_truncate(void)
   g_assert_no_error (error);
   g_assert (res);
   g_assert_cmpint (g_memory_output_stream_get_size (base_stream), ==, 6);
-  g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 4);
+  g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 6);
   stream_data = g_memory_output_stream_get_data (base_stream);
   g_assert_cmpint (stream_data[0], ==, 'a');
   g_assert_cmpint (stream_data[1], ==, 'b');
diff --git a/gio/tests/data-output-stream.c b/gio/tests/data-output-stream.c
index 98374af..b656b27 100644
--- a/gio/tests/data-output-stream.c
+++ b/gio/tests/data-output-stream.c
@@ -473,7 +473,7 @@ test_truncate (void)
   g_assert_no_error (error);
   g_assert (res);
   g_assert_cmpint (g_memory_output_stream_get_size (base_stream), ==, 6);
-  g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 4);
+  g_assert_cmpint (g_memory_output_stream_get_data_size (base_stream), ==, 6);
   stream_data = g_memory_output_stream_get_data (base_stream);
   g_assert_cmpint (stream_data[0], ==, 0x01);
   g_assert_cmpint (stream_data[1], ==, 0x23);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]