Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81310 - trunk/libs/test/test
From: gennadiy.rozental_at_[hidden]
Date: 2012-11-12 14:00:57


Author: rogeeff
Date: 2012-11-12 14:00:57 EST (Mon, 12 Nov 2012)
New Revision: 81310
URL: http://svn.boost.org/trac/boost/changeset/81310

Log:
check only file name
Text files modified:
   trunk/libs/test/test/test_tree_management_test.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

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 2012-11-12 14:00:57 EST (Mon, 12 Nov 2012)
@@ -132,7 +132,11 @@
     BOOST_CHECK_EQUAL( ts1->p_type_name, const_string( "suite" ) );
     BOOST_CHECK_EQUAL( ts1->p_parent_id, 0U );
     BOOST_CHECK_NE( ts1->p_id, INV_TEST_UNIT_ID );
- BOOST_CHECK_EQUAL( ts1->p_file_name, const_string( "test_tree_management_test.cpp" ) );
+ const_string fn(ts1->p_file_name);
+ const_string::size_type pos = fn.rfind( "/" );
+ if( pos != const_string::npos )
+ fn.trim_left( pos+1 );
+ BOOST_CHECK_EQUAL( fn, const_string( "test_tree_management_test.cpp" ) );
     BOOST_CHECK_EQUAL( ts1->p_line_num, 129U );
 
     BOOST_CHECK_EQUAL( ts1->p_expected_failures, 0U );


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