diff --git a/modules/imgcodecs/test/test_read_write.cpp b/modules/imgcodecs/test/test_read_write.cpp index 5056f4d632..e816a3cc39 100644 --- a/modules/imgcodecs/test/test_read_write.cpp +++ b/modules/imgcodecs/test/test_read_write.cpp @@ -145,6 +145,7 @@ TEST(Imgcodecs_Image, write_umat) ASSERT_FALSE(image2.empty()); EXPECT_PRED_FORMAT2(cvtest::MatComparator(0, 0), image1, image2); + EXPECT_EQ(0, remove(dst_name.c_str())); } }} // namespace