Index: error_code_test.cpp =================================================================== RCS file: /cvsroot/boost/boost/libs/system/test/error_code_test.cpp,v retrieving revision 1.1 diff -u -r1.1 error_code_test.cpp --- error_code_test.cpp 3 Nov 2006 16:57:30 -0000 1.1 +++ error_code_test.cpp 18 Dec 2006 20:55:22 -0000 @@ -27,9 +27,10 @@ # if defined( BOOST_WINDOWS_API ) # include "winerror.h" -# include # endif +#include + // test_main ---------------------------------------------------------------// // TODO: supply a build jam file @@ -107,8 +108,10 @@ #else BOOST_CHECK( ec == ec_0_native ); + ec = error_code( EPERM, native_ecat ); + BOOST_CHECK( ec.message().find(std::strerror(EPERM)) != std::string::npos); #endif - + return 0; }