diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pixbuf-scale-two-step.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pixbuf-scale-two-step.c b/tests/pixbuf-scale-two-step.c index d80f155e7..8050b30c5 100644 --- a/tests/pixbuf-scale-two-step.c +++ b/tests/pixbuf-scale-two-step.c @@ -63,6 +63,11 @@ pixdata_almost_equal (GdkPixbuf *one, GdkPixbuf *two) guchar *two_pixel; /* Pointer to current pixel data in two */ guint x, y; + g_assert_cmpint (gdk_pixbuf_get_height (one), >=, 0); + g_assert_cmpint (gdk_pixbuf_get_width (one), >=, 0); + g_assert_cmpint (gdk_pixbuf_get_height (two), >=, 0); + g_assert_cmpint (gdk_pixbuf_get_width (two), >=, 0); + if (gdk_pixbuf_get_width (one) != gdk_pixbuf_get_width (two) || gdk_pixbuf_get_height (one) != gdk_pixbuf_get_height (two)) { |