mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
tests/buffered-input-stream: Fix size of parameter passed
buffer-size is guint, but the public API is gsize for some reason. Tested-By: gustavold@linux.vnet.ibm.com https://bugzilla.gnome.org/show_bug.cgi?id=687801
This commit is contained in:
parent
d5df0a10f1
commit
753494a25e
@ -88,6 +88,7 @@ test_set_buffer_size (void)
|
||||
{
|
||||
GInputStream *base;
|
||||
GInputStream *in;
|
||||
guint bufsize_prop;
|
||||
gsize size, bufsize;
|
||||
|
||||
base = g_memory_input_stream_new_from_data ("abcdefghijk", -1, NULL);
|
||||
@ -105,8 +106,8 @@ test_set_buffer_size (void)
|
||||
g_buffered_input_stream_set_buffer_size (G_BUFFERED_INPUT_STREAM (in), 2);
|
||||
size = g_buffered_input_stream_get_buffer_size (G_BUFFERED_INPUT_STREAM (in));
|
||||
g_assert_cmpint (size, ==, bufsize);
|
||||
g_object_get (in, "buffer-size", &size, NULL);
|
||||
g_assert_cmpint (size, ==, bufsize);
|
||||
g_object_get (in, "buffer-size", &bufsize_prop, NULL);
|
||||
g_assert_cmpint (bufsize_prop, ==, bufsize);
|
||||
|
||||
g_object_unref (in);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user