From e090a2337ae5d2ea35a8061f7d70cb4ad679b0c5 Mon Sep 17 00:00:00 2001 From: Manuel Teira Paz Date: Tue, 17 Mar 2009 09:13:14 +0000 Subject: In testLoggerFormat: Change Logger::FUNCTION test to be aware that not all compilers may implement a __func__ macro -> Compare directly with BOOST_CURRENT_FUNCTION result git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@755160 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/tests/logging.cpp b/cpp/src/tests/logging.cpp index 1054dc1f7b..00e1d7de85 100644 --- a/cpp/src/tests/logging.cpp +++ b/cpp/src/tests/logging.cpp @@ -173,7 +173,7 @@ QPID_AUTO_TEST_CASE(testLoggerFormat) { l.format(Logger::FUNCTION); QPID_LOG(critical, "foo"); - BOOST_CHECK_REGEX("void .*testLoggerFormat.*\\(\\): foo\n", out->last()); + BOOST_CHECK_EQUAL(string(BOOST_CURRENT_FUNCTION) + ": foo\n", out->last()); l.format(Logger::LEVEL); QPID_LOG(critical, "foo"); -- cgit v1.2.1