From: malaterre Date: Fri, 4 Nov 2005 16:36:42 +0000 (+0000) Subject: ENH: Cleanup the test X-Git-Tag: OpenJPEG.Version1.2~45 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=14618d82528182113aaf46e38514fce02e3cd353;p=gdcm.git ENH: Cleanup the test --- 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$")