diff --git a/libfwupd/fwupd-self-test.c b/libfwupd/fwupd-self-test.c index 5ffd843da..3c5668c5e 100644 --- a/libfwupd/fwupd-self-test.c +++ b/libfwupd/fwupd-self-test.c @@ -893,7 +893,7 @@ fwupd_security_attr_func(void) g_assert_no_error(error); g_assert_true(ret); ret = fwupd_security_attr_from_json(attr2, json_parser_get_root(parser), &error); - if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) { + if (g_error_matches(error, FWUPD_ERROR, FWUPD_ERROR_NOT_SUPPORTED)) { g_test_skip(error->message); return; } diff --git a/src/fu-self-test.c b/src/fu-self-test.c index 64b5c96b7..378cc21c0 100644 --- a/src/fu-self-test.c +++ b/src/fu-self-test.c @@ -3466,7 +3466,7 @@ fu_security_attr_func(gconstpointer user_data) g_assert_no_error(error); g_assert_true(ret); ret = fu_security_attrs_from_json(attrs2, json_parser_get_root(parser), &error); - if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) { + if (g_error_matches(error, FWUPD_ERROR, FWUPD_ERROR_NOT_SUPPORTED)) { g_test_skip(error->message); return; }