X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestValidate.cxx;h=d9153ee29147b8d2d597dd570ed700716d442358;hb=5fd3624af732741c5e608085a294df0b497476eb;hp=1460329a1ec27ab91dd1fc2e376be518c2fdaa04;hpb=773706a0e77a31dcc20b4ef95b54158db9a76a34;p=gdcm.git diff --git a/Testing/TestValidate.cxx b/Testing/TestValidate.cxx index 1460329a..d9153ee2 100644 --- a/Testing/TestValidate.cxx +++ b/Testing/TestValidate.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestValidate.cxx,v $ Language: C++ - Date: $Date: 2005/11/17 17:44:25 $ - Version: $Revision: 1.7 $ + Date: $Date: 2005/11/21 10:02:57 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -31,8 +31,10 @@ int Validate(std::string const &filename) gdcm::File *input = gdcm::File::New( ); input->SetFileName(filename); input->Load(); - gdcm::Validator *v = new gdcm::Validator(); + gdcm::Validator *v = gdcm::Validator::New(); v->SetInput( input ); + input->Delete(); + v->Delete(); return 1; // allways true (we don't want to break the test suite) } @@ -54,9 +56,7 @@ int TestValidate(int argc, char *argv[]) << " filename.dcm " << std::endl; return 1; } - // Try to track the "FIXME" problem for VM - gdcm::Global::GetDicts()->GetDefaultPubDict()->Print(); - + int i =0; int retVal = 0; //by default : *no* error while( gdcmDataImages[i] != 0 )