X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fsubtitle_font_id_test.cc;h=42ed8858f022aadc4128af149c382b5b459c8607;hb=bb8ddd298ed2925a94b95651534a563992f840ea;hp=b55562c227898bd338f09d52e140453eabfb3ea0;hpb=5bc0f9a0e433e344e269411d20a106c65841b423;p=dcpomatic.git diff --git a/test/subtitle_font_id_test.cc b/test/subtitle_font_id_test.cc index b55562c22..42ed8858f 100644 --- a/test/subtitle_font_id_test.cc +++ b/test/subtitle_font_id_test.cc @@ -24,6 +24,7 @@ #include "lib/film.h" #include "lib/font.h" #include "lib/text_content.h" +#include "lib/util.h" #include #include #include @@ -34,7 +35,6 @@ using std::make_shared; -using std::shared_ptr; BOOST_AUTO_TEST_CASE(full_dcp_subtitle_font_id_test) @@ -157,7 +157,7 @@ BOOST_AUTO_TEST_CASE(make_dcp_with_subs_in_dcp_without_font_tag) #if BOOST_VERSION >= 107400 boost::filesystem::copy_file("test/data/no_font.xml", source_subtitle_file, boost::filesystem::copy_options::overwrite_existing); #else - boost::filesystem::copy_file("test/data/no_font.xml", source_subtitle_file, boost::filesystem::copy_option::overwrite_existing); + boost::filesystem::copy_file("test/data/no_font.xml", source_subtitle_file, boost::filesystem::copy_option::overwrite_if_exists); #endif /* Fix the tag */