summaryrefslogtreecommitdiff
path: root/test/remake_id_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-07 14:19:17 +0000
committerCarl Hetherington <cth@carlh.net>2018-03-07 14:19:17 +0000
commit92cd9c7f991f35942e70df341498a6b71b058e63 (patch)
tree9aaf3b9123d026dcf14b122c386c323362b45f20 /test/remake_id_test.cc
parentf41fba4a74411c5d5140fc56fa337ded198af91c (diff)
Fix up various confusions in test.
Diffstat (limited to 'test/remake_id_test.cc')
-rw-r--r--test/remake_id_test.cc11
1 files changed, 6 insertions, 5 deletions
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<boost::filesystem::path> cpl;
@@ -102,11 +103,11 @@ BOOST_AUTO_TEST_CASE (remake_id_test2)
/* Import the DCP into a new film */
shared_ptr<Film> film2 = new_test_film2("remake_id_test2_2");
shared_ptr<DCPContent> 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<Job>(new ExamineContentJob(film2, dcp_content)));
BOOST_REQUIRE(!wait_for_jobs());
- film->make_dcp();
+ film2->make_dcp();
BOOST_REQUIRE(!wait_for_jobs());
}