/*
- Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
{
string const name = "automatic_ffoc_lfoc_markers_test1";
auto film = new_test_film2 (name);
- film->examine_and_add_content (content_factory("test/data/flat_red.png").front());
+ film->examine_and_add_content (content_factory("test/data/flat_red.png")[0]);
BOOST_REQUIRE (!wait_for_jobs());
film->set_interop (false);
- film->make_dcp ();
- BOOST_REQUIRE (!wait_for_jobs());
+ make_and_verify_dcp (film);
dcp::DCP dcp (String::compose("build/test/%1/%2", name, film->dcp_name()));
dcp.read ();
{
string const name = "automatic_ffoc_lfoc_markers_test2";
auto film = new_test_film2 (name);
- film->examine_and_add_content (content_factory("test/data/flat_red.png").front());
+ film->examine_and_add_content (content_factory("test/data/flat_red.png")[0]);
BOOST_REQUIRE (!wait_for_jobs());
film->set_interop (false);
film->set_marker (dcp::Marker::FFOC, dcpomatic::DCPTime::from_seconds(1));
film->set_marker (dcp::Marker::LFOC, dcpomatic::DCPTime::from_seconds(9));
- film->make_dcp ();
- BOOST_REQUIRE (!wait_for_jobs());
+ make_and_verify_dcp (
+ film,
+ {
+ dcp::VerificationNote::Code::INCORRECT_FFOC,
+ dcp::VerificationNote::Code::INCORRECT_LFOC
+ });
dcp::DCP dcp (String::compose("build/test/%1/%2", name, film->dcp_name()));
dcp.read ();