Commit 1819d6ae authored by David E DeMarle's avatar David E DeMarle
Browse files

Merge branch 'fix-tests' into 'master'

Address a regression introduced when backporting vtk's changes

See merge request !2
parents d1f261a9 c890c6ef
...@@ -52,6 +52,13 @@ XdmfSystemUtils::getRealPath(const std::string & path) ...@@ -52,6 +52,13 @@ XdmfSystemUtils::getRealPath(const std::string & path)
xmlParseURIReference(ref, path.c_str()); xmlParseURIReference(ref, path.c_str());
char realPath[PATH_MAX]; char realPath[PATH_MAX];
char *rp = realpath(ref->path, realPath); char *rp = realpath(ref->path, realPath);
if (rp == 0)
//indicates a failure that we are silently ignoring
//TODO: realPath is now undefined but in practice
//ends up path.c_str()
rp = realPath;
xmlFreeURI(ref); xmlFreeURI(ref);
return std::string(rp); return std::string(rp);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment