From 92cd9c7f991f35942e70df341498a6b71b058e63 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 7 Mar 2018 14:19:17 +0000 Subject: Fix up various confusions in test. --- test/remake_id_test.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/remake_id_test.cc') diff --git a/test/remake_id_test.cc b/test/remake_id_test.cc index c92f0af43..43ed16ebb 100644 --- a/test/remake_id_test.cc +++ b/test/remake_id_test.cc @@ -74,9 +74,10 @@ BOOST_AUTO_TEST_CASE (remake_id_test2) film->make_dcp (); BOOST_REQUIRE (!wait_for_jobs ()); - /* Remake it */ - film->make_dcp (); - BOOST_REQUIRE (!wait_for_jobs ()); + /* Remove and remake it */ + boost::filesystem::remove_all(film->dir(film->dcp_name())); + film->make_dcp(); + BOOST_REQUIRE(!wait_for_jobs()); /* Find the CPL */ optional cpl; @@ -102,11 +103,11 @@ BOOST_AUTO_TEST_CASE (remake_id_test2) /* Import the DCP into a new film */ shared_ptr film2 = new_test_film2("remake_id_test2_2"); shared_ptr dcp_content(new DCPContent(film2, film->dir(film->dcp_name()))); - film->examine_and_add_content(dcp_content); + film2->examine_and_add_content(dcp_content); BOOST_REQUIRE(!wait_for_jobs()); dcp_content->add_kdm(kdm); JobManager::instance()->add(shared_ptr(new ExamineContentJob(film2, dcp_content))); BOOST_REQUIRE(!wait_for_jobs()); - film->make_dcp(); + film2->make_dcp(); BOOST_REQUIRE(!wait_for_jobs()); } -- cgit v1.2.3