summaryrefslogtreecommitdiff
path: root/test/encryption_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/encryption_test.cc')
-rw-r--r--test/encryption_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc
index f2a40843..358a3fd9 100644
--- a/test/encryption_test.cc
+++ b/test/encryption_test.cc
@@ -36,6 +36,7 @@
#include "dcp.h"
#include "certificate_chain.h"
#include "cpl.h"
+#include "filesystem.h"
#include "mono_picture_asset.h"
#include "picture_asset_writer.h"
#include "sound_asset_writer.h"
@@ -155,6 +156,11 @@ BOOST_AUTO_TEST_CASE (encryption_test)
kdm.encrypt (signer, signer->leaf(), vector<string>(), dcp::Formulation::MODIFIED_TRANSITIONAL_1, true, 0).as_xml("build/test/encryption_test.kdm.xml");
+ /* Make sure we aren't in a UNC current working directory otherwise the use of cmd.exe
+ * in system() below will fail.
+ */
+ boost::filesystem::current_path(dcp::filesystem::unfix_long_path(boost::filesystem::current_path()));
+
int r = system (
"xmllint --path schema --nonet --noout --schema schema/SMPTE-430-1-2006-Amd-1-2009-KDM.xsd build/test/encryption_test.kdm.xml "
#ifndef LIBDCP_WINDOWS