diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-08 17:43:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-08 17:43:49 +0100 |
| commit | b555355546af8f9091eaaba46479400b53b10a39 (patch) | |
| tree | 04b7232e6b8556512752adbd5ab5d50dfdd346ab /test/kdm_test.cc | |
| parent | d39880eef211a296fa8ef4712cdef5945d08527c (diff) | |
Remove use of xmldiff in tests.
Diffstat (limited to 'test/kdm_test.cc')
| -rw-r--r-- | test/kdm_test.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/kdm_test.cc b/test/kdm_test.cc index 21c922a2..2e877312 100644 --- a/test/kdm_test.cc +++ b/test/kdm_test.cc @@ -87,15 +87,12 @@ BOOST_AUTO_TEST_CASE (kdm_passthrough_test) shared_ptr<xmlpp::DomParser> parser (new xmlpp::DomParser ()); parser->parse_memory (kdm.as_xml ()); parser->get_document()->write_to_file_formatted ("build/kdm.xml", "UTF-8"); - int const r = system ( - "xmldiff -c test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml build/kdm.xml" + check_xml ( + dcp::file_to_string("test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml"), + dcp::file_to_string("build/kdm.xml"), + {}, + true ); - -#ifdef LIBDCP_WINDOWS - BOOST_CHECK_EQUAL (r, 0); -#else - BOOST_CHECK_EQUAL (WEXITSTATUS (r), 0); -#endif } /** Test some of the utility methods of DecryptedKDM */ |
