Author: aconway
Date: Tue Jun 12 15:22:46 2012
New Revision: 1349389

URL: http://svn.apache.org/viewvc?rev=1349389&view=rev
Log:
NO-JIRA: Fix failing unit_test, updated for changes in log format.

The test had not been updated to account for changes to log format, adding
[Category] to front of messages.

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=1349389&r1=1349388&r2=1349389&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/logging.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/logging.cpp Tue Jun 12 15:22:46 2012
@@ -351,7 +351,7 @@ QPID_AUTO_TEST_CASE(testLoggerStateure) 
     ifstream log("logging.tmp");
     string line;
     getline(log, line);
-    string expect=(format("critical %s:%d: foo")%__FILE__%srcline).str();
+    string expect=(format("[Test] critical %s:%d: 
foo")%__FILE__%srcline).str();
     BOOST_CHECK_EQUAL(expect, line);
     log.close();
     unlink("logging.tmp");
@@ -379,7 +379,7 @@ QPID_AUTO_TEST_CASE(testQuoteNonPrintabl
     ifstream log("logging.tmp");
     string line;
     getline(log, line, '\0');
-    string expect="critical null\\x00tab\tspace 
newline\nret\r\\x80\\x99\\xFF\\x00\n";
+    string expect="[Test] critical null\\x00tab\tspace 
newline\nret\r\\x80\\x99\\xFF\\x00\n";
     BOOST_CHECK_EQUAL(expect, line);
     log.close();
     unlink("logging.tmp");



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to