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

Modified Files:
      Tag: RC_1_34_0
        virtual_functions.cpp str.cpp dict.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: virtual_functions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/virtual_functions.cpp,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- virtual_functions.cpp       2 Mar 2006 17:12:18 -0000       1.15
+++ virtual_functions.cpp       25 Feb 2007 15:28:01 -0000      1.15.2.1
@@ -11,6 +11,7 @@
 #include <boost/ref.hpp>
 #include <boost/utility.hpp>
 
+#define BOOST_ENABLE_ASSERT_HANDLER
 #include <boost/assert.hpp>
 
 using namespace boost::python;

Index: str.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/str.cpp,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -d -r1.8 -r1.8.2.1
--- str.cpp     20 Feb 2006 15:45:40 -0000      1.8
+++ str.cpp     25 Feb 2007 15:28:01 -0000      1.8.2.1
@@ -7,6 +7,8 @@
 #include <boost/python/def.hpp>
 #include <boost/python/class.hpp>
 #include <boost/python/str.hpp>
+#define BOOST_ENABLE_ASSERT_HANDLER
+#include <boost/assert.hpp>
 
 using namespace boost::python;
 
@@ -74,3 +76,4 @@
     def("work_with_string",work_with_string);
 }
 
+#include "module_tail.cpp"

Index: dict.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/dict.cpp,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -d -r1.8 -r1.8.2.1
--- dict.cpp    20 Feb 2006 15:45:40 -0000      1.8
+++ dict.cpp    25 Feb 2007 15:28:01 -0000      1.8.2.1
@@ -2,6 +2,7 @@
 // Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/python/module.hpp>
+#define BOOST_ENABLE_ASSERT_HANDLER
 #include <boost/assert.hpp>
 
 #include <boost/python/def.hpp>
@@ -86,3 +87,5 @@
     def("work_with_dict", work_with_dict);
     def("test_templates", test_templates);
 }
+
+#include "module_tail.cpp"


-------------------------------------------------------------------------
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