summaryrefslogtreecommitdiff
path: root/test/cpl_metadata_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-05-02 17:49:32 +0200
committerCarl Hetherington <cth@carlh.net>2022-05-04 19:37:38 +0200
commit784020963f518aaba48b18b3fcff55d5c28a1f28 (patch)
tree7055f3f6c421431ee21c83caf080848daedbfdec /test/cpl_metadata_test.cc
parent5316c4b7ba275dc6a8f4d2179dd22ad3c8dc42b5 (diff)
Make some tests repeatable across platforms.
Diffstat (limited to 'test/cpl_metadata_test.cc')
-rw-r--r--test/cpl_metadata_test.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/cpl_metadata_test.cc b/test/cpl_metadata_test.cc
index b90aae4a..b141d271 100644
--- a/test/cpl_metadata_test.cc
+++ b/test/cpl_metadata_test.cc
@@ -316,7 +316,7 @@ BOOST_AUTO_TEST_CASE (cpl_metadata_write_test1)
check_xml (
dcp::file_to_string("test/ref/cpl_metadata_test1.xml"),
dcp::file_to_string("build/test/cpl_metadata_write_test1.xml"),
- vector<string>()
+ {"Id", "Hash"}
);
}
@@ -326,12 +326,10 @@ BOOST_AUTO_TEST_CASE (cpl_metadata_roundtrip_test_1)
{
dcp::CPL cpl ("test/ref/cpl_metadata_test1.xml");
cpl.write_xml ("build/test/cpl_metadata_roundtrip_test1.xml", shared_ptr<dcp::CertificateChain>());
- vector<string> ignore;
- ignore.push_back ("Id");
check_xml (
dcp::file_to_string("test/ref/cpl_metadata_test1.xml"),
dcp::file_to_string("build/test/cpl_metadata_roundtrip_test1.xml"),
- ignore
+ {"Id"}
);
}
@@ -367,7 +365,7 @@ BOOST_AUTO_TEST_CASE (cpl_metadata_write_test2)
check_xml (
dcp::file_to_string("test/ref/cpl_metadata_test2.xml"),
dcp::file_to_string("build/test/cpl_metadata_write_test2.xml"),
- vector<string>()
+ {"Id", "Hash"}
);
}