Update of /cvsroot/boost/boost/libs/system/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14724/test

Modified Files:
      Tag: c++0x
        error_code_test.cpp 
Log Message:
Posix update, reflecting fact that real operating systems are never pure posix

Index: error_code_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/system/test/error_code_test.cpp,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- error_code_test.cpp 18 Jun 2007 11:48:05 -0000      1.1.2.2
+++ error_code_test.cpp 18 Jun 2007 20:01:47 -0000      1.1.2.3
@@ -118,27 +118,27 @@
   //   test the first entry in the decoder table:
   ec = error_code( ERROR_FILE_NOT_FOUND, native_category );
   BOOST_CHECK( ec.value() == ERROR_FILE_NOT_FOUND );
-  BOOST_CHECK( ec.posix() == ENOENT );
+  BOOST_CHECK( ec.posix() == no_such_file_or_directory );
 
   //   test the second entry in the decoder table:
   ec = error_code( ERROR_PATH_NOT_FOUND, native_category );
   BOOST_CHECK( ec.value() == ERROR_PATH_NOT_FOUND );
-  BOOST_CHECK( ec.posix() == ENOENT );
+  BOOST_CHECK( ec.posix() == no_such_file_or_directory );
 
   //   test the third entry in the decoder table:
   ec = error_code( ERROR_ACCESS_DENIED, native_category );
   BOOST_CHECK( ec.value() == ERROR_ACCESS_DENIED );
-  BOOST_CHECK( ec.posix() == EACCES );
+  BOOST_CHECK( ec.posix() == permission_denied );
 
   //   test the last regular entry in the decoder table:
   ec = error_code( ERROR_WRITE_PROTECT, native_category );
   BOOST_CHECK( ec.value() == ERROR_WRITE_PROTECT );
-  BOOST_CHECK( ec.posix() == EROFS );
+  BOOST_CHECK( ec.posix() == permission_denied );
 
   //   test not-in-table condition:
   ec = error_code( 1234567890, native_category );
   BOOST_CHECK( ec.value() == 1234567890 );
-  BOOST_CHECK( ec.posix() == EOTHER );
+  BOOST_CHECK( ec.posix() == other );
 
 #else
   BOOST_CHECK( ec == ec_0_native );


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to