Update of /cvsroot/boost/boost/libs/python/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28205/libs/python/test
Modified Files:
virtual_functions.cpp str.cpp staticmethod.cpp list.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).
Index: virtual_functions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/virtual_functions.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- virtual_functions.cpp 2 Mar 2006 17:12:18 -0000 1.15
+++ virtual_functions.cpp 24 Feb 2007 22:40:58 -0000 1.16
@@ -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.9
diff -u -d -r1.8 -r1.9
--- str.cpp 20 Feb 2006 15:45:40 -0000 1.8
+++ str.cpp 24 Feb 2007 22:40:58 -0000 1.9
@@ -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: staticmethod.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/staticmethod.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- staticmethod.cpp 18 May 2006 18:47:12 -0000 1.4
+++ staticmethod.cpp 24 Feb 2007 22:40:58 -0000 1.5
@@ -9,6 +9,7 @@
#include <boost/python/call_method.hpp>
#include <boost/ref.hpp>
#include <boost/utility.hpp>
+#define BOOST_ENABLE_ASSERT_HANDLER
#include <boost/assert.hpp>
using namespace boost::python;
Index: list.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/python/test/list.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- list.cpp 18 May 2006 18:47:12 -0000 1.13
+++ list.cpp 24 Feb 2007 22:40:58 -0000 1.14
@@ -9,6 +9,7 @@
#include <boost/python/list.hpp>
#include <boost/python/make_function.hpp>
#include <boost/lexical_cast.hpp>
+#define BOOST_ENABLE_ASSERT_HANDLER
#include <boost/assert.hpp>
#include "test_class.hpp"
@@ -143,3 +144,4 @@
;
}
+#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.9
diff -u -d -r1.8 -r1.9
--- dict.cpp 20 Feb 2006 15:45:40 -0000 1.8
+++ dict.cpp 24 Feb 2007 22:40:58 -0000 1.9
@@ -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