X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestAllVM.cxx;h=d0ebb13e14bc9d69ac52a5d538695290d3a8ec2f;hb=4725aeb3e10e02e1e0ad9ac18baf7cc6a3feed6d;hp=27dc4dc281c53226de0a56512cb173914b10ec14;hpb=14da8fbfce99d66af65ee2a6294f90e70a054652;p=gdcm.git diff --git a/Testing/TestAllVM.cxx b/Testing/TestAllVM.cxx index 27dc4dc2..d0ebb13e 100644 --- a/Testing/TestAllVM.cxx +++ b/Testing/TestAllVM.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllVM.cxx,v $ Language: C++ - Date: $Date: 2005/11/21 10:29:44 $ - Version: $Revision: 1.10 $ + Date: $Date: 2006/06/30 09:47:35 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -36,9 +36,10 @@ int DoTheVMTest(std::string const &filename) gdcm::DocEntry *d = file->GetFirstEntry(); std::cerr << "Testing file : " << filename << std::endl; + gdcm::DataEntry *de; while(d) { - if ( gdcm::DataEntry *de = dynamic_cast(d) ) + if ( de = dynamic_cast(d) ) { if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now, // Private Dictionnary are not dealt with @@ -85,7 +86,7 @@ int TestAllVM(int argc, char *argv[]) filename += "/"; filename += gdcmDataImages[i]; - if (gdcmDataImages[i] == "00191113.dcm" // Track bug on Darwin + if (!strcmp(gdcmDataImages[i],"00191113.dcm")) // Track bug on Darwin gdcm::Debug::DebugOn(); else gdcm::Debug::DebugOff();