X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FVTKTestRead.cxx;h=90f677b61774c8f4194e06768cf018cc7bb046d8;hb=d9f8b4b69e332d38e9c883ba60f40dc858883de9;hp=88a6157eeff8317a009bce752b0a571f8f3fd7a4;hpb=6b0359d3c073112a5d6a23114d6adb0fff949e7b;p=gdcm.git diff --git a/Testing/VTKTestRead.cxx b/Testing/VTKTestRead.cxx index 88a6157e..90f677b6 100644 --- a/Testing/VTKTestRead.cxx +++ b/Testing/VTKTestRead.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: VTKTestRead.cxx,v $ Language: C++ - Date: $Date: 2005/02/09 15:06:48 $ - Version: $Revision: 1.10 $ + Date: $Date: 2007/09/18 07:58:38 $ + Version: $Revision: 1.15 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -15,7 +15,6 @@ PURPOSE. See the above copyright notices for more information. =========================================================================*/ -#include "gdcmFileHelper.h" #include "vtkGdcmReader.h" #include "vtkImageViewer.h" #include "vtkImageData.h" @@ -28,6 +27,7 @@ #include "vtkPNGWriter.h" #include +#include //Generated file: #include "gdcmDataImages.h" @@ -40,7 +40,7 @@ int VTKReadTest(vtkTesting *t,vtkImageViewer *viewer, std::string const &filename, std::string const &referenceFileName) { - int retVal = 0; //by default this is an error + int retVal; // = 0; (to avoid bcc5.5 warnings) t->CleanArguments(); t->AddArgument("-D"); @@ -148,7 +148,7 @@ int VTKReadTest(vtkTesting *t,vtkImageViewer *viewer, //---------------------------------------------------------------------- // make test - ostrstream str; + std::ostringstream str; retVal = t->RegressionTest(image,0.0,str); image->UnRegister(NULL); @@ -156,7 +156,6 @@ int VTKReadTest(vtkTesting *t,vtkImageViewer *viewer, { std::cerr << str.str(); } - str.rdbuf()->freeze(1); if( retVal == vtkTesting::PASSED ) { @@ -205,6 +204,8 @@ int VTKTestRead(int argc, char *argv[]) return ret; } + + //gdcm::Debug::DebugOn(); // Comment out when no bug is to be tracked // Test for all images int i = 0;