From 14618d82528182113aaf46e38514fce02e3cd353 Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 4 Nov 2005 16:36:42 +0000 Subject: [PATCH] ENH: Cleanup the test --- CMake/gdcmTestIstringStream.cxx | 6 +++--- CMakeLists.txt | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMake/gdcmTestIstringStream.cxx b/CMake/gdcmTestIstringStream.cxx index fd753e6f..59adc35d 100644 --- a/CMake/gdcmTestIstringStream.cxx +++ b/CMake/gdcmTestIstringStream.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmTestIstringStream.cxx,v $ Language: C++ - Date: $Date: 2005/11/04 16:21:40 $ - Version: $Revision: 1.1 $ + Date: $Date: 2005/11/04 16:36:43 $ + Version: $Revision: 1.2 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,7 +23,7 @@ int main() { std::istringstream os; int vm; - std::string s = "0"; + std::string s = "5"; os.str(s); os >> vm; diff --git a/CMakeLists.txt b/CMakeLists.txt index f87b1043..b583e9bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,14 +96,14 @@ IF("GDCM_TEST_ISTRINGSTREAM" MATCHES "^GDCM_TEST_ISTRINGSTREAM$") ${GDCM_SOURCE_DIR}/CMake/gdcmTestIstringStream.cxx) IF(GDCM_TEST_ISTRINGSTREAM_COMPILED) IF(GDCM_TEST_ISTRINGSTREAM) - MESSAGE(STATUS "Checking signedness of char -- signed") - SET(GDCM_TEST_ISTRINGSTREAM 1 CACHE INTERNAL "Whether char is signed.") + MESSAGE(STATUS "Checking istringstream works -- yes") + SET(GDCM_TEST_ISTRINGSTREAM 1 CACHE INTERNAL "Whether istringstream works.") ELSE(GDCM_TEST_ISTRINGSTREAM) - MESSAGE(STATUS "Checking signedness of char -- unsigned") - SET(GDCM_TEST_ISTRINGSTREAM 0 CACHE INTERNAL "Whether char is signed.") + MESSAGE(STATUS "Checking istringstream works -- no") + SET(GDCM_TEST_ISTRINGSTREAM 0 CACHE INTERNAL "Whether istringstream works.") ENDIF(GDCM_TEST_ISTRINGSTREAM) ELSE(GDCM_TEST_ISTRINGSTREAM_COMPILED) - MESSAGE(STATUS "Checking signedness of char -- failed") + MESSAGE(STATUS "Checking istringstream -- failed") ENDIF(GDCM_TEST_ISTRINGSTREAM_COMPILED) ENDIF("GDCM_TEST_ISTRINGSTREAM" MATCHES "^GDCM_TEST_ISTRINGSTREAM$") -- 2.45.1