summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-09 21:33:56 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-25 01:30:31 +0200
commit1e6484e0fe9e3fa090ef58e17433333a5378043c (patch)
tree5bbb2e4efa39c5aee1d93bd618e5805b38ceb39f /test
parent00706c7d9ded27a537af4e8182e67b460ec316bc (diff)
Improve save-template dialog and always use a default template.
Diffstat (limited to 'test')
-rw-r--r--test/template_test.cc5
-rw-r--r--test/test.cc1
2 files changed, 5 insertions, 1 deletions
diff --git a/test/template_test.cc b/test/template_test.cc
index b3d8150db..014a27309 100644
--- a/test/template_test.cc
+++ b/test/template_test.cc
@@ -27,6 +27,9 @@
#include <boost/test/unit_test.hpp>
+using std::string;
+
+
/* Bug #2491 */
BOOST_AUTO_TEST_CASE(template_wrong_channel_counts)
{
@@ -35,7 +38,7 @@ BOOST_AUTO_TEST_CASE(template_wrong_channel_counts)
Config::override_path = "test/data";
auto film = new_test_film("template_wrong_channel_counts", {});
- film->use_template("Bug");
+ film->use_template(string("Bug"));
auto mono = content_factory("test/data/C.wav").front();
film->examine_and_add_content(mono);
diff --git a/test/test.cc b/test/test.cc
index 4029aeda7..0a59d0300 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -214,6 +214,7 @@ new_test_film(string name, vector<shared_ptr<Content>> content, Cleanup* cleanup
}
auto film = make_shared<Film>(p);
+ film->use_template({});
film->set_dcp_content_type (DCPContentType::from_isdcf_name ("TST"));
film->set_container (Ratio::from_id ("185"));
film->write_metadata ();