|
Boost-Commit : |
From: bdawes_at_[hidden]
Date: 2007-11-08 07:35:50
Author: bemandawes
Date: 2007-11-08 07:35:50 EST (Thu, 08 Nov 2007)
New Revision: 40926
URL: http://svn.boost.org/trac/boost/changeset/40926
Log:
Borland appends newline, so just check text
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-08 07:35:50 EST (Thu, 08 Nov 2007)
@@ -149,7 +149,8 @@
ec = error_code( -1, system_category );
std::cout << "error_code message for -1 is \"" << ec.message() << "\"\n";
#if defined(BOOST_WINDOWS_API)
- BOOST_CHECK( ec.message() == "Unknown error" );
+ // Borland appends newline, so just check text
+ BOOST_CHECK( ec.message().substr(0,13) == "Unknown error" );
#elif defined(linux) || defined(__linux) || defined(__linux__)
// Linux appends value to message as unsigned, so it varies with # of bits
BOOST_CHECK( ec.message().substr(0,13) == "Unknown error" );
@@ -168,7 +169,8 @@
dec = error_condition( -1, posix_category );
std::cout << "error_condition message for -1 is \"" << dec.message() << "\"\n";
#if defined(BOOST_WINDOWS_API)
- BOOST_CHECK( dec.message() == "Unknown error" );
+ // Borland appends newline, so just check text
+ BOOST_CHECK( dec.message().substr(0,13) == "Unknown error" );
#elif defined(linux) || defined(__linux) || defined(__linux__)
// Linux appends value to message as unsigned, so it varies with # of bits
BOOST_CHECK( dec.message().substr(0,13) == "Unknown error" );
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