trivial: Fix regression from 9f94dc9 on Ubuntu Focal

This commit is contained in:
Richard Hughes 2021-12-17 12:19:39 +00:00
parent 2f3b2d7a86
commit cb110b55f8
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}