You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mt...@apache.org on 2009/03/17 10:13:16 UTC

svn commit: r755160 - /qpid/trunk/qpid/cpp/src/tests/logging.cpp

Author: mteira
Date: Tue Mar 17 09:13:14 2009
New Revision: 755160

URL: http://svn.apache.org/viewvc?rev=755160&view=rev
Log:
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


Modified:
    qpid/trunk/qpid/cpp/src/tests/logging.cpp

Modified: qpid/trunk/qpid/cpp/src/tests/logging.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/logging.cpp?rev=755160&r1=755159&r2=755160&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/logging.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/logging.cpp Tue Mar 17 09:13:14 2009
@@ -173,7 +173,7 @@
 
     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");



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org