diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-31 22:47:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-07 22:44:55 +0100 |
| commit | e795a038d60e46d1241ea0be2ff44c75ef5b45b9 (patch) | |
| tree | 7d1bba7396895a344b24a0561648fb7715c6c0ae /test | |
| parent | 8e9b90530a743e2e981e35859bfe5fb42f465e6b (diff) | |
Check for multiple asset IDs in a PKL during verify.
Diffstat (limited to 'test')
| -rw-r--r-- | test/verify_test.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/verify_test.cc b/test/verify_test.cc index d1319810..7791f8b5 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -3343,3 +3343,26 @@ BOOST_AUTO_TEST_CASE(verify_invalid_main_picture_active_area_2) } +BOOST_AUTO_TEST_CASE(verify_duplicate_pkl_asset_ids) +{ + RNGFixer rg; + + path dir = "build/test/verify_duplicate_pkl_asset_ids"; + prepare_directory(dir); + auto dcp = make_simple(dir, 1, 24); + dcp->write_xml(); + + { + Editor e(find_pkl(dir)); + e.replace("urn:uuid:5407b210-4441-4e97-8b16-8bdc7c12da54", "urn:uuid:6affb8ee-0020-4dff-a53c-17652f6358ab"); + } + + dcp::PKL pkl(find_pkl(dir)); + + check_verify_result( + { dir }, + { + { dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL, pkl.id(), canonical(find_pkl(dir)) }, + }); +} + |
