summaryrefslogtreecommitdiff
path: root/tests/test_loader_pixbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_loader_pixbuf.c')
-rw-r--r--tests/test_loader_pixbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_loader_pixbuf.c b/tests/test_loader_pixbuf.c
index ba37522..32e3a2e 100644
--- a/tests/test_loader_pixbuf.c
+++ b/tests/test_loader_pixbuf.c
@@ -104,8 +104,8 @@ assert_unsupported(const guint8 *p_buf, gsize u_len) {
GdkTexture *p_tex = load_bytes(p_buf, u_len, &p_err);
g_assert_null(p_tex);
g_assert_nonnull(p_err);
- g_assert_cmpint(p_err->code, ==, G_IO_ERROR_NOT_SUPPORTED);
- g_error_free(p_err);
+ g_error_free(p_err); /* NOT_SUPPORTED if no backend, or a decode error if
+ * the specific backend is compiled in. */
}
static void