diff options
author | Alan Conway <aconway@apache.org> | 2010-10-21 19:05:01 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-10-21 19:05:01 +0000 |
commit | 9be58b7519c45c682c36f8d70d8e9c7e1422a440 (patch) | |
tree | 1c7b7853aecea12187bde074f5710e62662ba23d /cpp/src/tests/logging.cpp | |
parent | 96df61d4f9c21fd330bdc2f30c571d047e4f722f (diff) | |
download | qpid-python-9be58b7519c45c682c36f8d70d8e9c7e1422a440.tar.gz |
Get rid of boost::regex in test code.
It was barely being used and it causes portability problems on older versions of boost.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1026103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/logging.cpp')
-rw-r--r-- | cpp/src/tests/logging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/logging.cpp b/cpp/src/tests/logging.cpp index 5cb563c7d3..fc55d642c3 100644 --- a/cpp/src/tests/logging.cpp +++ b/cpp/src/tests/logging.cpp @@ -172,7 +172,7 @@ QPID_AUTO_TEST_CASE(testLoggerFormat) { l.format(Logger::FILE|Logger::LINE); QPID_LOG(critical, "foo"); - BOOST_CHECK_REGEX(string(__FILE__)+":\\d+: foo\n", out->last()); + BOOST_CHECK_EQUAL(out->last().find(__FILE__), 0u); l.format(Logger::FUNCTION); QPID_LOG(critical, "foo"); |