Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-05 07:36:41


Author: bemandawes
Date: 2007-11-05 07:36:41 EST (Mon, 05 Nov 2007)
New Revision: 40782
URL: http://svn.boost.org/trac/boost/changeset/40782

Log:
Add message display to illuminate why aCC fails Unknown error test
Text files modified:
   trunk/libs/system/test/error_code_test.cpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/system/test/error_code_test.cpp
==============================================================================
--- trunk/libs/system/test/error_code_test.cpp (original)
+++ trunk/libs/system/test/error_code_test.cpp 2007-11-05 07:36:41 EST (Mon, 05 Nov 2007)
@@ -147,11 +147,13 @@
   // test error_code and error_condition message(),
   // see Boost.Filesystem operations_test for code specific message() tests
   ec = error_code( -1, system_category );
+ std::cout << "error_code message for -1 is \"" << ec.message() << "\"\n";
   BOOST_CHECK( ec.message().substr( 0, 13) == "Unknown error" );
   ec = error_code( BOOST_ACCESS_ERROR_MACRO, system_category );
   BOOST_CHECK( ec.message() != "" );
   BOOST_CHECK( ec.message().substr( 0, 13) != "Unknown error" );
   dec = error_condition( -1, posix_category );
+ std::cout << "error_condition message for -1 is \"" << dec.message() << "\"\n";
   BOOST_CHECK( dec.message().substr( 0, 13) == "Unknown error" );
   dec = error_condition( BOOST_ACCESS_ERROR_MACRO, posix_category );
   BOOST_CHECK( dec.message() != "" );


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