summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2020-11-24 10:17:20 +1300
committerRobert Ancell <robert.ancell@canonical.com>2020-11-24 10:23:22 +1300
commit26bcf21999e3b7cd3589062e7cc6497a57296559 (patch)
tree60c85f0ba33b1c58a5fd455c337ee09dbc8d5f7c /tests
parent20e0ba8d3d2076ed30060707870cdb3c3eb0fa40 (diff)
downloadgdk-pixbuf-26bcf21999e3b7cd3589062e7cc6497a57296559.tar.gz
tests: Replace g_assert with g_assert_true
The former can be disabled at build time.
Diffstat (limited to 'tests')
-rw-r--r--tests/pixbuf-gif.c4
1 files changed, 2 insertions, 2 deletions
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);
}