Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81199 - in trunk/boost/test: impl tree
From: gennadiy.rozental_at_[hidden]
Date: 2012-11-05 06:36:21


Author: rogeeff
Date: 2012-11-05 06:36:21 EST (Mon, 05 Nov 2012)
New Revision: 81199
URL: http://svn.boost.org/trac/boost/changeset/81199

Log:
Restore original test case constructor
Text files modified:
   trunk/boost/test/impl/test_tree.ipp | 9 +++++++++
   trunk/boost/test/tree/test_unit.hpp | 1 +
   2 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/test/impl/test_tree.ipp
==============================================================================
--- trunk/boost/test/impl/test_tree.ipp (original)
+++ trunk/boost/test/impl/test_tree.ipp 2012-11-05 06:36:21 EST (Mon, 05 Nov 2012)
@@ -128,6 +128,15 @@
 // ************** test_case ************** //
 // ************************************************************************** //
 
+test_case::test_case( const_string name, boost::function<void ()> const& test_func )
+: test_unit( name, "", 0, static_cast<test_unit_type>(type) )
+, p_test_func( test_func )
+{
+ framework::register_test_unit( this );
+}
+
+//____________________________________________________________________________//
+
 test_case::test_case( const_string name, const_string file_name, std::size_t line_num, boost::function<void ()> const& test_func )
 : test_unit( name, file_name, line_num, static_cast<test_unit_type>(type) )
 , p_test_func( test_func )

Modified: trunk/boost/test/tree/test_unit.hpp
==============================================================================
--- trunk/boost/test/tree/test_unit.hpp (original)
+++ trunk/boost/test/tree/test_unit.hpp 2012-11-05 06:36:21 EST (Mon, 05 Nov 2012)
@@ -114,6 +114,7 @@
     enum { type = tut_case };
 
     // Constructor
+ test_case( const_string tc_name, boost::function<void ()> const& test_func );
     test_case( const_string tc_name, const_string tc_file, std::size_t tc_line, boost::function<void ()> const& test_func );
 
     // Public property


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk