[librsvg: 9/29] Use g_assert_cmpint() to get better logs
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 9/29] Use g_assert_cmpint() to get better logs
- Date: Tue, 6 Feb 2018 21:04:50 +0000 (UTC)
commit 43a280afa2cfc8c4daf3f5504791e80ee519082b
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Feb 6 10:07:40 2018 -0600
Use g_assert_cmpint() to get better logs
tests/api.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/api.c b/tests/api.c
index 73827d1..27dea0d 100644
--- a/tests/api.c
+++ b/tests/api.c
@@ -135,8 +135,8 @@ test_pixbuf (gconstpointer data) {
g_assert (pixbuf != NULL);
g_assert (error == NULL);
- g_assert (gdk_pixbuf_get_width (pixbuf) == test->expected_width);
- g_assert (gdk_pixbuf_get_height (pixbuf) == test->expected_height);
+ g_assert_cmpint (gdk_pixbuf_get_width (pixbuf), ==, test->expected_width);
+ g_assert_cmpint (gdk_pixbuf_get_height (pixbuf), ==, test->expected_height);
g_object_unref (pixbuf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]