summaryrefslogtreecommitdiff
path: root/test/dcp_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-10-10 18:58:05 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-10 18:58:05 +0200
commit4c8cc9e99678a4095772f283ffaaa1d6bd8aaf67 (patch)
tree31d52c150ead202b1c5801591b655e7009963404 /test/dcp_test.cc
parentb4e1d9fffeb3a834e30ec13bbd467cecd88f87f9 (diff)
Fix crash when loading DCPs whose ASSETMAP contains files that are
not mentioned in any PKL (#1855).
Diffstat (limited to 'test/dcp_test.cc')
-rw-r--r--test/dcp_test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc
index 610b175e..1129b711 100644
--- a/test/dcp_test.cc
+++ b/test/dcp_test.cc
@@ -274,3 +274,11 @@ BOOST_AUTO_TEST_CASE (dcp_test8)
BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 2);
}
+
+
+/** Test reading a DCP whose ASSETMAP contains assets not used by any PKL */
+BOOST_AUTO_TEST_CASE (dcp_things_in_assetmap_not_in_pkl)
+{
+ dcp::DCP dcp ("test/data/extra_assetmap");
+ BOOST_CHECK_NO_THROW (dcp.read());
+}