diff --git a/tests/conform/test-cogl-sub-texture.c b/tests/conform/test-cogl-sub-texture.c index b876a6845..6cbafbf67 100644 --- a/tests/conform/test-cogl-sub-texture.c +++ b/tests/conform/test-cogl-sub-texture.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "test-conform-common.h" @@ -226,8 +227,8 @@ validate_result (TestState *state) for (y = 0; y < 10; y++) for (x = 0; x < 10; x++) { - g_assert (*(p++) == x + 40); - g_assert (*(p++) == y + 20); + g_assert_cmpint (abs(*(p++) - (x + 40)), <=, 1); + g_assert_cmpint (abs(*(p++) - (y + 20)), <=, 1); p += 2; } g_free (texture_data);