Commit 4c0fc43d authored by jcfr's avatar jcfr
Browse files

BUG: Fix test vtkMRMLDisplayableManagerFactoriesTest1

Append a slash to dataroot

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16362 3bd1e089-480b-0410-8dfb-8563597acbee
parent 434b0106
......@@ -203,8 +203,8 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[])
// Load scene
std::string mrmlFiletoLoad(testHelper->GetDataRoot());
mrmlFiletoLoad.append("Data/vtkMRMLDisplayableManagerFactoriesTest1-load.mrml");
std::string dataRoot = testHelper->GetDataRoot();
std::string mrmlFiletoLoad = dataRoot + "/Data/vtkMRMLDisplayableManagerFactoriesTest1-load.mrml";
scene->SetURL(mrmlFiletoLoad.c_str());
bool success = scene->Connect();
if (!success)
......@@ -268,8 +268,7 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[])
// Import scene
std::string mrmlFiletoImport(testHelper->GetDataRoot());
mrmlFiletoImport.append("Data/vtkMRMLDisplayableManagerFactoriesTest1-import.mrml");
std::string mrmlFiletoImport = dataRoot + "/Data/vtkMRMLDisplayableManagerFactoriesTest1-import.mrml";
scene->SetURL(mrmlFiletoImport.c_str());
success = scene->Import();
if (!success)
......
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