From 4c8cc9e99678a4095772f283ffaaa1d6bd8aaf67 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 10 Oct 2020 18:58:05 +0200 Subject: Fix crash when loading DCPs whose ASSETMAP contains files that are not mentioned in any PKL (#1855). --- test/dcp_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/dcp_test.cc') 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()); +} -- cgit v1.2.3