[gdk-pixbuf: 4/6] tests: Replace g_assert with g_assert_true
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf: 4/6] tests: Replace g_assert with g_assert_true
- Date: Sun, 29 Nov 2020 17:15:17 +0000 (UTC)
commit 26bcf21999e3b7cd3589062e7cc6497a57296559
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Nov 24 10:17:20 2020 +1300
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(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]