Skip to content

Commit d7691bc

Browse files
authored
Move test body to inner loop in MetadataTest (#2735)
1 parent 0091d09 commit d7691bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/gtest/avifmetadatatest.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ TEST(MetadataTest, ExifOrientation) {
287287
}
288288

289289
TEST(MetadataTest, AllExifOrientations) {
290-
const ImagePtr image =
291-
testutil::ReadImage(data_path, "paris_exif_orientation_5.jpg");
292-
ASSERT_NE(image, nullptr);
293-
image->transformFlags = AVIF_TRANSFORM_NONE;
294290
for (uint8_t orientation = 1; orientation <= 8; ++orientation) {
291+
const ImagePtr image =
292+
testutil::ReadImage(data_path, "paris_exif_orientation_5.jpg");
293+
ASSERT_NE(image, nullptr);
294+
image->transformFlags = AVIF_TRANSFORM_NONE;
295295
// Check roundtrip.
296296
ASSERT_EQ(avifSetExifOrientation(&image->exif, orientation),
297297
AVIF_RESULT_OK);

0 commit comments

Comments
 (0)