|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56391 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2009-09-26 18:39:01
Author: rogeeff
Date: 2009-09-26 18:39:01 EDT (Sat, 26 Sep 2009)
New Revision: 56391
URL: http://svn.boost.org/trac/boost/changeset/56391
Log:
test updated
Text files modified:
trunk/libs/test/test/Jamfile.v2 | 1 +
trunk/libs/test/test/test_tree_management_test.cpp | 40 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 40 insertions(+), 1 deletions(-)
Modified: trunk/libs/test/test/Jamfile.v2
==============================================================================
--- trunk/libs/test/test/Jamfile.v2 (original)
+++ trunk/libs/test/test/Jamfile.v2 2009-09-26 18:39:01 EDT (Sat, 26 Sep 2009)
@@ -20,6 +20,7 @@
<toolset>gcc:<cxxflags>-pedantic
<toolset>gcc:<cxxflags>-Wno-long-long
<toolset>borland:<cxxflags>-w-8080
+ <toolset>borland:<cxxflags>-w-8084
<toolset>msvc-6.5:<link>static
<toolset>msvc-8.0:<define>_SCL_SECURE_NO_DEPRECATE
<warnings>all
Modified: trunk/libs/test/test/test_tree_management_test.cpp
==============================================================================
--- trunk/libs/test/test/test_tree_management_test.cpp (original)
+++ trunk/libs/test/test/test_tree_management_test.cpp 2009-09-26 18:39:01 EDT (Sat, 26 Sep 2009)
@@ -16,6 +16,9 @@
#define BOOST_TEST_MODULE test tree management test
#include <boost/test/unit_test.hpp>
using namespace boost::unit_test;
+
+#include <boost/mpl/vector.hpp>
+
//____________________________________________________________________________//
// some empty test suites/cases
@@ -52,6 +55,33 @@
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE( S3 )
+
+BOOST_AUTO_TEST_SUITE_END()
+
+struct F1 {
+ F1() { BOOST_TEST_MESSAGE( "In F1" ); }
+};
+
+BOOST_AUTO_TEST_SUITE( S4 )
+
+typedef boost::mpl::vector<int,float,char> test_types;
+BOOST_FIXTURE_TEST_CASE_TEMPLATE( tctempl, T, test_types, F1 )
+{
+}
+
+BOOST_AUTO_TEST_SUITE_END()
+
+struct F2 {
+ F2() { BOOST_TEST_MESSAGE( "In F2" ); }
+};
+
+BOOST_FIXTURE_TEST_SUITE( S5, F2 )
+
+typedef boost::mpl::vector<int,float,char,double,int> test_types;
+BOOST_AUTO_TEST_CASE_TEMPLATE( tctempl, T, test_types )
+{
+}
+
BOOST_AUTO_TEST_SUITE_END()
//____________________________________________________________________________//
@@ -152,7 +182,7 @@
{
test_suite& mts = framework::master_test_suite();
- BOOST_CHECK_EQUAL( mts.size(), 8U );
+ BOOST_CHECK_EQUAL( mts.size(), 10U );
BOOST_CHECK_EQUAL( mts.p_expected_failures, 2U );
BOOST_CHECK_EQUAL( framework::get<test_case>( mts.get( "automated_test_units_registration" ) ).p_expected_failures, 0U );
@@ -176,6 +206,14 @@
BOOST_CHECK_EQUAL( S21.size(), 1U );
BOOST_CHECK_EQUAL( S1.p_expected_failures, 1U );
+
+ test_suite& S4 = framework::get<test_suite>( mts.get( "S4" ) );
+
+ BOOST_CHECK_EQUAL( S4.size(), 3U );
+
+ test_suite& S5 = framework::get<test_suite>( mts.get( "S5" ) );
+
+ BOOST_CHECK_EQUAL( S5.size(), 5U );
}
//____________________________________________________________________________//
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