From 26bcf21999e3b7cd3589062e7cc6497a57296559 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 24 Nov 2020 10:17:20 +1300 Subject: tests: Replace g_assert with g_assert_true The former can be disabled at build time. --- tests/pixbuf-gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/pixbuf-gif.c b/tests/pixbuf-gif.c index bc89205de..c5f11f48e 100644 --- a/tests/pixbuf-gif.c +++ b/tests/pixbuf-gif.c @@ -164,10 +164,10 @@ run_gif_test (gconstpointer data) g_assert_cmpint (gdk_pixbuf_get_colorspace (pixbuf), ==, GDK_COLORSPACE_RGB); g_assert_cmpint (gdk_pixbuf_get_n_channels (pixbuf), ==, 4); - g_assert (gdk_pixbuf_get_has_alpha (pixbuf)); + g_assert_true (gdk_pixbuf_get_has_alpha (pixbuf)); g_assert_cmpint (gdk_pixbuf_get_rowstride (pixbuf), ==, width * 4); pixels = g_bytes_new_static (gdk_pixbuf_read_pixels (pixbuf), gdk_pixbuf_get_byte_length (pixbuf)); - g_assert (pixels_match (pixels, expected_pixels)); + g_assert_true (pixels_match (pixels, expected_pixels)); g_clear_pointer (&pixels, g_bytes_unref); g_clear_pointer (&expected_pixels, g_bytes_unref); } -- cgit v1.2.1