From afb30f4013fdcb58ee35af919fdb739ab587683c Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 18 Nov 2009 01:13:11 +0000 Subject: [PATCH] tests: blend-string: use g_assert_cmpint It's very useful to see the actual number the reference value is compared too when the test fails. GTest has g_assert_cmp$type() functions for that, so make good use of them. --- tests/conform/test-cogl-blend-strings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conform/test-cogl-blend-strings.c b/tests/conform/test-cogl-blend-strings.c index 09113bbcd..d65c809b4 100644 --- a/tests/conform/test-cogl-blend-strings.c +++ b/tests/conform/test-cogl-blend-strings.c @@ -41,9 +41,9 @@ check_pixel (GLubyte *pixel, guint32 color) g_print (" expected = %x, %x, %x, %x\n", r, g, b, a); /* FIXME - allow for hardware in-precision */ - g_assert (pixel[RED] == r); - g_assert (pixel[GREEN] == g); - g_assert (pixel[BLUE] == b); + g_assert_cmpint (pixel[RED], ==, r); + g_assert_cmpint (pixel[GREEN], ==, g); + g_assert_cmpint (pixel[BLUE], ==, b); /* FIXME * We ignore the alpha, since we don't know if our render target is