summaryrefslogtreecommitdiff
path: root/qpid/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
commit3c8968ee65bbcc08e7b4e948dbee0518c6a4b6bd (patch)
tree18ba45a6b5cbfbedfd68772f11cf82040d5c3bc4 /qpid/cpp/src/tests/logging.cpp
parenta1802c698078787d5ac332b72d8b6ebe75cee286 (diff)
downloadqpid-python-3c8968ee65bbcc08e7b4e948dbee0518c6a4b6bd.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@1026103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/logging.cpp')
-rw-r--r--qpid/cpp/src/tests/logging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/logging.cpp b/qpid/cpp/src/tests/logging.cpp
index 5cb563c7d3..fc55d642c3 100644
--- a/qpid/cpp/src/tests/logging.cpp
+++ b/qpid/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");