Update of /cvsroot/boost/boost/libs/iterator/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29671/libs/iterator/test
Modified Files:
Tag: RC_1_34_0
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).
or changing BOOST_TEST to BOOST_CHECK where the integer library
was clearly using Boost.Test and not returning report_errors().
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.9.8.1
diff -u -d -r1.9 -r1.9.8.1
--- transform_iterator_test.cpp 26 Jul 2004 00:32:09 -0000 1.9
+++ transform_iterator_test.cpp 25 Feb 2007 15:28:01 -0000 1.9.8.1
@@ -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.12.8.1
diff -u -d -r1.12 -r1.12.8.1
--- reverse_iterator_test.cpp 19 Aug 2004 15:11:49 -0000 1.12
+++ reverse_iterator_test.cpp 25 Feb 2007 15:28:01 -0000 1.12.8.1
@@ -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.4.8.2
retrieving revision 1.4.8.3
diff -u -d -r1.4.8.2 -r1.4.8.3
--- iterator_facade.cpp 15 Sep 2006 16:41:43 -0000 1.4.8.2
+++ iterator_facade.cpp 25 Feb 2007 15:28:01 -0000 1.4.8.3
@@ -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.10.4.1
diff -u -d -r1.10 -r1.10.4.1
--- filter_iterator_test.cpp 13 Dec 2004 09:31:16 -0000 1.10
+++ filter_iterator_test.cpp 25 Feb 2007 15:28:01 -0000 1.10.4.1
@@ -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