summaryrefslogtreecommitdiff
path: root/cpp/src/tests/logging.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-10-21 19:05:01 +0000
committerAlan Conway <aconway@apache.org>2010-10-21 19:05:01 +0000
commite993fa71f11ad20d82e360ee314ce7beede45065 (patch)
tree1c7b7853aecea12187bde074f5710e62662ba23d /cpp/src/tests/logging.cpp
parent68351a63cdc71edf3fbc9d3281ad17b28d74bd78 (diff)
downloadqpid-python-e993fa71f11ad20d82e360ee314ce7beede45065.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.cpp2
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");