Skip to content

Commit

Permalink
skip 'no regions' test if there is no uncompressed codec (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 27, 2024
1 parent 270979e commit 5385aa7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/region.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@


TEST_CASE("no regions") {
// skip test if we do not have the uncompressed codec
if (!heif_have_decoder_for_format(heif_compression_uncompressed)) {
SKIP("Skipping test because uncompressed codec is not compiled.");
}

auto context = get_context_for_test_file("uncompressed_comp_RGB.heif");
heif_image_handle *handle = get_primary_image_handle(context);
int num_region_items = heif_image_handle_get_number_of_region_items(handle);
Expand Down

0 comments on commit 5385aa7

Please sign in to comment.