X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Testing%2FTestDicomDir.cxx;h=4de300aa36b426b777dd8d4ff08d144f1fc13393;hb=cecf8a0bb86a9b3223a9d02d1106a564aa6ef7f9;hp=9b6855b701d89420ce598f5ac0fee3bf50ac3d29;hpb=3b0f255e96f0f6cd246bd69c7dcc31443bc75bbb;p=gdcm.git diff --git a/Testing/TestDicomDir.cxx b/Testing/TestDicomDir.cxx index 9b6855b7..4de300aa 100644 --- a/Testing/TestDicomDir.cxx +++ b/Testing/TestDicomDir.cxx @@ -2,6 +2,7 @@ #include "gdcm.h" #include "gdcmHeaderEntry.h" #include "gdcmDicomDir.h" +#include "gdcmConfigure.h" #include #ifdef GDCM_NO_ANSI_STRING_STREAM @@ -31,9 +32,11 @@ int testDicomDir(int argc, char* argv[]) std::string file; if (argc > 1) file = argv[1]; - else - file = "../gdcmData/DICOMDIR"; - + else { + file += GDCM_DATA_ROOT; + file += "/DICOMDIR"; + } + e1 = new gdcmDicomDir(file.c_str()); if (argc > 2) { int level = atoi(argv[2]);