diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-06-07 12:36:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-06-07 12:36:40 +0200 |
| commit | 6a3c03c5eed3cab8fdfdb04fcbaf6cabe8c715e9 (patch) | |
| tree | 8b5a7a47aff2a066f304c6bd31c2780c6f92ca98 /test/test.cc | |
| parent | fcba100f0dfd1d4214291abb76f22ebd696c24d4 (diff) | |
Fix incorrect extension on interop subtitle files (#2270).
Diffstat (limited to 'test/test.cc')
| -rw-r--r-- | test/test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test.cc b/test/test.cc index 9260d568f..105939473 100644 --- a/test/test.cc +++ b/test/test.cc @@ -791,12 +791,12 @@ check_one_frame (boost::filesystem::path dcp_dir, int64_t index, boost::filesyst boost::filesystem::path dcp_file (shared_ptr<const Film> film, string prefix) { - auto i = boost::filesystem::directory_iterator (film->dir(film->dcp_name())); - while (i != boost::filesystem::directory_iterator() && !boost::algorithm::starts_with (i->path().leaf().string(), prefix)) { + auto i = boost::filesystem::recursive_directory_iterator(film->dir(film->dcp_name())); + while (i != boost::filesystem::recursive_directory_iterator() && !boost::algorithm::starts_with(i->path().leaf().string(), prefix)) { ++i; } - BOOST_REQUIRE (i != boost::filesystem::directory_iterator()); + BOOST_REQUIRE_MESSAGE(i != boost::filesystem::recursive_directory_iterator(), "Could not find file with prefix " << prefix); return i->path(); } |
