Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-08-16 09:27:54


Author: bemandawes
Date: 2007-08-16 09:27:53 EDT (Thu, 16 Aug 2007)
New Revision: 38716
URL: http://svn.boost.org/trac/boost/changeset/38716

Log:
Reenable Windows message test, fix category test
Text files modified:
   branches/c++0x/boost/libs/system/test/system_error_test.cpp | 20 ++++++++++----------
   1 files changed, 10 insertions(+), 10 deletions(-)

Modified: branches/c++0x/boost/libs/system/test/system_error_test.cpp
==============================================================================
--- branches/c++0x/boost/libs/system/test/system_error_test.cpp (original)
+++ branches/c++0x/boost/libs/system/test/system_error_test.cpp 2007-08-16 09:27:53 EDT (Thu, 16 Aug 2007)
@@ -39,13 +39,13 @@
   {
     std::cout << "test " << desc << "\n what() returns \"" << ex.what() << "\"\n";
     BOOST_CHECK( ex.code().value() == v );
-// BOOST_CHECK( ex.code().category() == posix_category );
-//# ifdef BOOST_WINDOWS_API
-// BOOST_CHECK( std::string( ex.what() ) == str );
-// if ( std::string( ex.what() ) != str )
-// std::cout << "expected \"" << str << "\", but what() returned \""
-// << ex.what() << "\"\n";
-//# endif
+ BOOST_CHECK( ex.code().category() == system_category );
+# ifdef BOOST_WINDOWS_API
+ BOOST_CHECK( std::string( ex.what() ) == str );
+ if ( std::string( ex.what() ) != str )
+ std::cout << "expected \"" << str << "\", but what() returned \""
+ << ex.what() << "\"\n";
+# endif
   }
 
   const boost::uint_least32_t uvalue = 1u;
@@ -62,10 +62,10 @@
   system_error se_1u_m( uvalue, system_category, "se_1u_m" );
 
   TEST( se_0_m, 0, "se_0_m" );
- TEST( se_1_m, 1, "se_1_m: Operation not permitted" );
+ TEST( se_1_m, 1, "se_1_m: Incorrect function" );
   TEST( se_0_nm, 0, "" );
- TEST( se_1_nm, 1, "Operation not permitted" );
- TEST( se_1u_m, 1, "se_1u_m: Operation not permitted" );
+ TEST( se_1_nm, 1, "Incorrect function" );
+ TEST( se_1u_m, 1, "se_1u_m: Incorrect function" );
 
 
   return 0;


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