Skip to content

Commit

Permalink
Skip test if no AV1 codec available
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon committed Jan 15, 2025
1 parent fc166b5 commit 3cce15a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/gtest/aviftransformtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const char* data_path = nullptr;
//------------------------------------------------------------------------------

TEST(TransformTest, ClapIrotImir) {
if (!testutil::Av1EncoderAvailable() || !testutil::Av1DecoderAvailable()) {
GTEST_SKIP() << "AV1 codec unavailable, skip test.";
}

avifDiagnostics diag{};
ImagePtr image =
testutil::CreateImage(/*width=*/12, /*height=*/34, /*depth=*/10,
Expand Down

0 comments on commit 3cce15a

Please sign in to comment.