summaryrefslogtreecommitdiff
path: root/test/test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-06 02:37:16 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-09 23:38:28 +0200
commit96f50dd5e600925488fdd9db1580aa01b026269b (patch)
treeea8b837a596eb99a7416bfdbfd2d7e4f38603a7b /test/test.cc
parent94a9473993b027b9368077009decbdd4322f90e3 (diff)
Use dcp::filesystem to wrap filesystem calls and fix_long_path
anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems.
Diffstat (limited to 'test/test.cc')
-rw-r--r--test/test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc
index 630026120..9b08dfb4e 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -46,6 +46,7 @@
#include <dcp/cpl.h>
#include <dcp/dcp.h>
#include <dcp/equality_options.h>
+#include <dcp/filesystem.h>
#include <dcp/mono_picture_asset.h>
#include <dcp/mono_picture_frame.h>
#include <dcp/openjpeg_image.h>
@@ -107,7 +108,7 @@ TestPaths::TestPaths::private_data ()
boost::filesystem::path TestPaths::xsd ()
{
- return boost::filesystem::canonical(boost::filesystem::path("..") / boost::filesystem::path("libdcp") / boost::filesystem::path("xsd"));
+ return boost::filesystem::current_path().parent_path() / "libdcp" / "xsd";
}