Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-12 12:42:42


Author: bemandawes
Date: 2007-11-12 12:42:42 EST (Mon, 12 Nov 2007)
New Revision: 41040
URL: http://svn.boost.org/trac/boost/changeset/41040

Log:
Include system-specific headers, change namespaces accordingly.
Text files modified:
   trunk/libs/system/test/error_code_test.cpp | 15 +++++++++------
   1 files changed, 9 insertions(+), 6 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-12 12:42:42 EST (Mon, 12 Nov 2007)
@@ -20,6 +20,9 @@
 
 #include <boost/test/minimal.hpp>
 #include <boost/system/error_code.hpp>
+#include <boost/system/cygwin_error.hpp>
+#include <boost/system/linux_error.hpp>
+#include <boost/system/windows_error.hpp>
 #include <iostream>
 #include <sstream>
 #include <string>
@@ -244,19 +247,19 @@
 # ifdef __CYGWIN__
 
   std::cout << "Cygwin tests...\n";
- ec = cygwin::no_package;
- BOOST_CHECK( ec == cygwin::no_package );
+ ec = cygwin_error::no_package;
+ BOOST_CHECK( ec == cygwin_error::no_package );
   BOOST_CHECK( ec == error_code( ENOPKG, system_category ) );
- BOOST_CHECK( ec == error_code( cygwin::no_package, system_category ) );
+ BOOST_CHECK( ec == error_code( cygwin_error::no_package, system_category ) );
   BOOST_CHECK( ec.default_error_condition().category() == system_category );
 
 # elif defined(linux) || defined(__linux) || defined(__linux__)
 
   std::cout << "Linux tests...\n";
- ec = Linux::dot_dot_error;
- BOOST_CHECK( ec == Linux::dot_dot_error );
+ ec = linux_error::dot_dot_error;
+ BOOST_CHECK( ec == linux_error::dot_dot_error );
   BOOST_CHECK( ec == error_code( EDOTDOT, system_category ) );
- BOOST_CHECK( ec == error_code( Linux::dot_dot_error, system_category ) );
+ BOOST_CHECK( ec == error_code( linux_error::dot_dot_error, system_category ) );
   BOOST_CHECK( ec.default_error_condition().category() == system_category );
 
 # endif


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