From 3c8968ee65bbcc08e7b4e948dbee0518c6a4b6bd Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 21 Oct 2010 19:05:01 +0000 Subject: 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 --- qpid/cpp/src/tests/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src/tests/logging.cpp') 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"); -- cgit v1.2.1