Skip to content

Commit

Permalink
Restore original test case constructor
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.boost.org/svn/boost/trunk@81199 b8fc166d-592f-0410-95f2-cb63ce0dd405
  • Loading branch information
rogeeff committed Nov 5, 2012
1 parent 5a71b38 commit 88c5b45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions boost/test/impl/test_tree.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ test_unit::has_label( const_string l ) const
// ************** 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 )
Expand Down
1 change: 1 addition & 0 deletions boost/test/tree/test_unit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class BOOST_TEST_DECL test_case : public test_unit {
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
Expand Down

0 comments on commit 88c5b45

Please sign in to comment.