diff --git a/tests/encode.cc b/tests/encode.cc index 31b8e4760b..fa73b183f1 100644 --- a/tests/encode.cc +++ b/tests/encode.cc @@ -124,7 +124,9 @@ static void test_ispe_size(heif_compression_format compression, options->image_orientation = orientation; heif_image_handle* handle; - heif_context_encode_image(ctx, img, enc, options, &handle); + heif_error err = heif_context_encode_image(ctx, img, enc, options, &handle); + UNSCOPED_INFO("heif_context_encode_image: " << err.message); + REQUIRE(err.code == heif_error_Ok); int ispe_width = heif_image_handle_get_ispe_width(handle); int ispe_height = heif_image_handle_get_ispe_height(handle); diff --git a/tests/extended_type.cc b/tests/extended_type.cc index f860acdf8a..556891d491 100644 --- a/tests/extended_type.cc +++ b/tests/extended_type.cc @@ -47,7 +47,7 @@ TEST_CASE("make extended type") { heif_image_handle *output_image_handle; err = heif_context_encode_image(ctx, input_image, encoder, nullptr, &output_image_handle); - INFO("error message: " << err.message); + UNSCOPED_INFO("heif_context_encode_image: " << err.message); REQUIRE(err.code == heif_error_Ok); heif_item_id itemId;