diff options
author | Manuel Teira Paz <mteira@apache.org> | 2009-03-17 09:13:14 +0000 |
---|---|---|
committer | Manuel Teira Paz <mteira@apache.org> | 2009-03-17 09:13:14 +0000 |
commit | bea0791b4288eb8de41eb02ce248ad0f3dce8b8d (patch) | |
tree | 2dfe240550ca0dd34e736a1921f32181434af91e /qpid/cpp/src/tests/logging.cpp | |
parent | 70497793cc2a01b7ce3f3741fea7619658bdf09d (diff) | |
download | qpid-python-bea0791b4288eb8de41eb02ce248ad0f3dce8b8d.tar.gz |
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@755160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/logging.cpp')
-rw-r--r-- | qpid/cpp/src/tests/logging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/logging.cpp b/qpid/cpp/src/tests/logging.cpp index 1054dc1f7b..00e1d7de85 100644 --- a/qpid/cpp/src/tests/logging.cpp +++ b/qpid/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"); |