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[]) ...@@ -203,8 +203,8 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[])
// Load scene // Load scene
std::string mrmlFiletoLoad(testHelper->GetDataRoot()); std::string dataRoot = testHelper->GetDataRoot();
mrmlFiletoLoad.append("Data/vtkMRMLDisplayableManagerFactoriesTest1-load.mrml"); std::string mrmlFiletoLoad = dataRoot + "/Data/vtkMRMLDisplayableManagerFactoriesTest1-load.mrml";
scene->SetURL(mrmlFiletoLoad.c_str()); scene->SetURL(mrmlFiletoLoad.c_str());
bool success = scene->Connect(); bool success = scene->Connect();
if (!success) if (!success)
...@@ -268,8 +268,7 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[]) ...@@ -268,8 +268,7 @@ int vtkMRMLDisplayableManagerFactoriesTest1(int argc, char* argv[])
// Import scene // Import scene
std::string mrmlFiletoImport(testHelper->GetDataRoot()); std::string mrmlFiletoImport = dataRoot + "/Data/vtkMRMLDisplayableManagerFactoriesTest1-import.mrml";
mrmlFiletoImport.append("Data/vtkMRMLDisplayableManagerFactoriesTest1-import.mrml");
scene->SetURL(mrmlFiletoImport.c_str()); scene->SetURL(mrmlFiletoImport.c_str());
success = scene->Import(); success = scene->Import();
if (!success) 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