From c80cca033afbb73ae790dd94d506acbfb9fa7a57 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 19 Nov 2022 17:16:17 +0100 Subject: [PATCH] Cleanup: use dcp_file(). --- test/content_test.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/content_test.cc b/test/content_test.cc index a22be29aa..9e33225f0 100644 --- a/test/content_test.cc +++ b/test/content_test.cc @@ -55,15 +55,7 @@ BOOST_AUTO_TEST_CASE (content_test1) { dcp::VerificationNote::Code::MISSING_FFEC_IN_FEATURE, dcp::VerificationNote::Code::MISSING_FFMC_IN_FEATURE } ); - boost::filesystem::path check; - - for (auto i: boost::filesystem::directory_iterator("build/test/content_test1/" + film->dcp_name())) { - if (i.path().leaf().string().substr(0, 4) == "pcm_") { - check = i; - } - } - - check_mxf_audio_file (TestPaths::private_data() / "content_test1.mxf", check); + check_mxf_audio_file(TestPaths::private_data() / "content_test1.mxf", dcp_file(film, "pcm_")); } -- 2.30.2