Cleanup: use dcp_file().
authorCarl Hetherington <cth@carlh.net>
Sat, 19 Nov 2022 16:16:17 +0000 (17:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 25 Nov 2022 22:42:55 +0000 (23:42 +0100)
test/content_test.cc

index a22be29aac16130183dec3024ade5c117d028637..9e33225f0a30fbdafc396b8594f265694ca6e68b 100644 (file)
@@ -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_"));
 }