Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-07 21:55:22


Author: bemandawes
Date: 2007-11-07 21:55:21 EST (Wed, 07 Nov 2007)
New Revision: 40918
URL: http://svn.boost.org/trac/boost/changeset/40918

Log:
Cope with larger errno on 64-bit systems
Text files modified:
   trunk/libs/system/test/error_code_test.cpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 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-07 21:55:21 EST (Wed, 07 Nov 2007)
@@ -151,7 +151,8 @@
 #if defined(BOOST_WINDOWS_API)
   BOOST_CHECK( ec.message() == "Unknown error" );
 #elif defined(linux) || defined(__linux) || defined(__linux__)
- BOOST_CHECK( ec.message() == "Unknown error 4294967295" );
+ // Linux appends value to message as unsigned, so it varies with # of bits
+ BOOST_CHECK( ec.message().substr(0,13) == "Unknown error" );
 #elif defined(__hpux)
   BOOST_CHECK( ec.message() == "" );
 #elif defined(__osf__)
@@ -169,7 +170,8 @@
 #if defined(BOOST_WINDOWS_API)
   BOOST_CHECK( dec.message() == "Unknown error" );
 #elif defined(linux) || defined(__linux) || defined(__linux__)
- BOOST_CHECK( dec.message() == "Unknown error 4294967295" );
+ // Linux appends value to message as unsigned, so it varies with # of bits
+ BOOST_CHECK( dec.message().substr(0,13) == "Unknown error" );
 #elif defined(__hpux)
   BOOST_CHECK( dec.message() == "" );
 #elif defined(__osf__)


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