Fix crash when loading DCPs whose ASSETMAP contains files that are
[libdcp.git] / test / dcp_test.cc
index 2e1344c51fa1f1b32ed657d565d9014751ba1162..b5d37826f47a8f7a3b8269bace461992d2e19f17 100644 (file)
@@ -327,3 +327,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());
+}