From d3b58df32f665ba6099c587db23b035665443ee7 Mon Sep 17 00:00:00 2001 From: James Bowley <12133430+cudawarped@users.noreply.github.com> Date: Wed, 26 Oct 2022 17:50:36 +0300 Subject: [PATCH] Remove temporary files from accuracy tests. --- modules/cudacodec/test/test_video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/cudacodec/test/test_video.cpp b/modules/cudacodec/test/test_video.cpp index a1260a6da..d4d42b169 100644 --- a/modules/cudacodec/test/test_video.cpp +++ b/modules/cudacodec/test/test_video.cpp @@ -482,6 +482,7 @@ CUDA_TEST_P(TransCode, H264ToH265) ASSERT_FALSE(frame.empty()); } } + ASSERT_EQ(0, remove(outputFile.c_str())); } INSTANTIATE_TEST_CASE_P(CUDA_Codec, TransCode, ALL_DEVICES); @@ -562,6 +563,7 @@ CUDA_TEST_P(Write, Writer) ASSERT_FALSE(frame.empty()); } } + ASSERT_EQ(0, remove(outputFile.c_str())); } #define DEVICE_SRC true, false @@ -643,6 +645,7 @@ CUDA_TEST_P(EncoderParams, Writer) } } } + ASSERT_EQ(0, remove(outputFile.c_str())); } INSTANTIATE_TEST_CASE_P(CUDA_Codec, EncoderParams, ALL_DEVICES);