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 | e090a2337ae5d2ea35a8061f7d70cb4ad679b0c5 (patch) | |
tree | 6b25a37b4ac00fefe45486e775e69d915e74f2b1 /cpp | |
parent | 416cca89e9291960b58ae8acacc4ec306cb50ab5 (diff) | |
download | qpid-python-e090a2337ae5d2ea35a8061f7d70cb4ad679b0c5.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/qpid@755160 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/tests/logging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |