Commit 45ddb1ac authored by David E. DeMarle's avatar David E. DeMarle

allow vtk to avoid the real path lookup for its own tests

vtk's regression tests are symbolic links to other files that
do not end with .xmf or .h5. When we try to open those we
segfault.
parent 982cd6d4
......@@ -25,6 +25,7 @@
#include <limits.h>
#include <stdlib.h>
#include "XdmfSystemUtils.hpp"
#include "XdmfCoreConfig.hpp"
#include <iostream>
XdmfSystemUtils::XdmfSystemUtils()
......@@ -35,6 +36,14 @@ XdmfSystemUtils::~XdmfSystemUtils()
{
}
#ifdef XDMF_NO_REALPATH
//allows symbolic links
std::string
XdmfSystemUtils::getRealPath(const std::string & path)
{
return path;
}
#else
std::string
XdmfSystemUtils::getRealPath(const std::string & path)
{
......@@ -46,3 +55,4 @@ XdmfSystemUtils::getRealPath(const std::string & path)
xmlFreeURI(ref);
return std::string(rp);
}
#endif
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