summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-19 17:16:17 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-25 23:42:55 +0100
commitc80cca033afbb73ae790dd94d506acbfb9fa7a57 (patch)
tree9d0b33888a3091879ed496b00907b606b6ac1789 /test
parent83cc823e87ae700e2da230186bb5baf4f8b0d47e (diff)
Cleanup: use dcp_file().
Diffstat (limited to 'test')
-rw-r--r--test/content_test.cc10
1 files changed, 1 insertions, 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_"));
}