X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllReadCompareDicom.cxx;h=a61581d756f8feae867a6d9d1b4a2b1da607b85c;hb=96078bd0d3edf63c984fb5bd76ee5b57601872bd;hp=2fefb6bd6acd978c5f725a9fc28eaac1085d3db3;hpb=2dc05a84bd1562150648277f94d8d1d04efcebe7;p=gdcm.git diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index 2fefb6bd..a61581d7 100644 --- a/Testing/TestAllReadCompareDicom.cxx +++ b/Testing/TestAllReadCompareDicom.cxx @@ -157,7 +157,22 @@ int TestAllReadCompareDicom(int argc, char* argv[]) std::string baseLineDir = GDCM_DATA_ROOT; baseLineDir += "/BaselineDicom/"; - FILE* testFILE = fopen( baseLineDir.c_str(), "r" ); + std::ifstream* testDIR = new std::ifstream(baseLineDir.c_str(), std::ios::in | std::ios::binary); + if (!testDIR ) + { + std::cerr << " The reference baseline directory " << std::endl + << " " + << baseLineDir << std::endl + << " couldn't be opened." + << std::endl; + return 1; + } + else + { + testDIR->close(); + } + +/* FILE* testFILE = fopen( baseLineDir.c_str(), "r" ); if (!testFILE ) { std::cerr << " The reference baseline directory " << std::endl @@ -170,7 +185,7 @@ int TestAllReadCompareDicom(int argc, char* argv[]) else { fclose( testFILE ); - } + }*/ ////// Step 1 (see above description):