]> Creatis software - gdcm.git/commitdiff
ENH: Cleanup the test
authormalaterre <malaterre>
Fri, 4 Nov 2005 16:36:42 +0000 (16:36 +0000)
committermalaterre <malaterre>
Fri, 4 Nov 2005 16:36:42 +0000 (16:36 +0000)
CMake/gdcmTestIstringStream.cxx
CMakeLists.txt

index fd753e6f90c1bec09790980a113b79ff6d64dfe4..59adc35d17226f9c0d1c30d750f85c374d5c3a6e 100644 (file)
@@ -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;
index f87b10431ad4afa9110215de42160747bccae8be..b583e9bfa70ead1c6c61da743d679c1c4a2e2145 100644 (file)
@@ -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$")