From 8341008e6e7cf155a053b5fe469b182bf7eed52a Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 8 Nov 2005 09:13:22 +0000 Subject: [PATCH] Try to track BigEndian troubles --- Testing/TestAllReadCompareDicom.cxx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Testing/TestAllReadCompareDicom.cxx b/Testing/TestAllReadCompareDicom.cxx index ef51a8c1..05069a76 100644 --- a/Testing/TestAllReadCompareDicom.cxx +++ b/Testing/TestAllReadCompareDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestAllReadCompareDicom.cxx,v $ Language: C++ - Date: $Date: 2005/11/03 14:07:12 $ - Version: $Revision: 1.51 $ + Date: $Date: 2005/11/08 09:13:22 $ + Version: $Revision: 1.52 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -283,16 +283,19 @@ bool TestFile::ReadFileData(std::ifstream *fp) } // We *know* the .tst files are written in 'Little Endian' format. // We *know* DataSize may be 1 or 2 ! - uint16_t g; + uint16_t g; + +// Track BigEndian troubles +std::cout << " calarSize : " << GetScalarSize() + << " SwapCode:" << GetSwapCode() + << std::endl; + for (unsigned int i=0; i> 8 ); ((uint16_t *)Data)[i] = g; } - - - return(true); } @@ -588,6 +591,9 @@ int InternalTest(std::string const &filename, int TestAllReadCompareDicom(int argc, char *argv[]) { +// Temporarily added, to track BigEndian troubles +gdcm::Debug::DebugOn(); + if (argc == 4) gdcm::Debug::DebugOn(); -- 2.45.1