Update of /cvsroot/boost/boost/libs/iterator/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28205/libs/iterator/test

Modified Files:
        transform_iterator_test.cpp reverse_iterator_test.cpp 
        iterator_facade.cpp filter_iterator_test.cpp 
Log Message:
Correct testing bugs:

    either changing assert(...) or BOOST_ASSERT(...) to BOOST_TEST 
    (in my code only)

    or adding "return boost::report_errors();" where it was clearly
    missing (and a pure bug, in anyone's code).


Index: transform_iterator_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/iterator/test/transform_iterator_test.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- transform_iterator_test.cpp 26 Jul 2004 00:32:09 -0000      1.9
+++ transform_iterator_test.cpp 24 Feb 2007 22:40:59 -0000      1.10
@@ -244,5 +244,5 @@
     );
   }
 
-  return 0;
+  return boost::report_errors();
 }

Index: reverse_iterator_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/iterator/test/reverse_iterator_test.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- reverse_iterator_test.cpp   19 Aug 2004 15:11:49 -0000      1.12
+++ reverse_iterator_test.cpp   24 Feb 2007 22:40:59 -0000      1.13
@@ -170,6 +170,5 @@
 #endif
   }
 
-  std::cout << "test successful " << std::endl;
-  return boost::exit_success;
+  return boost::report_errors();
 }

Index: iterator_facade.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/iterator/test/iterator_facade.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- iterator_facade.cpp 15 Sep 2006 16:40:07 -0000      1.6
+++ iterator_facade.cpp 24 Feb 2007 22:40:59 -0000      1.7
@@ -6,7 +6,6 @@
 
 #include <boost/iterator/iterator_facade.hpp>
 #include <boost/iterator/new_iterator_tests.hpp>
-#include <boost/assert.hpp>
 
 // This is a really, really limited test so far.  All we're doing
 // right now is checking that the postfix++ proxy for single-pass
@@ -95,7 +94,7 @@
     state = 3;
     boost::readable_iterator_test(counter_iterator<proxy>(&state), 3);
     boost::writable_iterator_test(counter_iterator<proxy>(&state), 9, 7);
-    BOOST_ASSERT(state == 8);
+    BOOST_TEST(state == 8);
 
     // test for a fix to http://tinyurl.com/zuohe
     // These two lines should be equivalent (and both compile)
@@ -103,5 +102,5 @@
     (*p).mutator();
     p->mutator();
     
-    return 0;
+    return boost::report_errors();
 }

Index: filter_iterator_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/iterator/test/filter_iterator_test.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- filter_iterator_test.cpp    13 Dec 2004 09:31:16 -0000      1.10
+++ filter_iterator_test.cpp    24 Feb 2007 22:40:59 -0000      1.11
@@ -268,6 +268,5 @@
         dummyT(1), dummyT(4));
 
 
-  std::cout << "test successful " << std::endl;
-  return boost::exit_success;
+    return boost::report_errors();
 }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to