diff options
| author | Alan Conway <aconway@apache.org> | 2012-06-12 15:22:46 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-06-12 15:22:46 +0000 |
| commit | 2eb0566ea44e53915b9028db7882996e8c9a2da6 (patch) | |
| tree | 21e87ae7307526685a17307ec1adac57cbf7ea64 /cpp/src/tests/logging.cpp | |
| parent | cad5270da8b7bada1609c3b261c3b17fa5e826a4 (diff) | |
| download | qpid-python-2eb0566ea44e53915b9028db7882996e8c9a2da6.tar.gz | |
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.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1349389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/logging.cpp')
| -rw-r--r-- | cpp/src/tests/logging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/logging.cpp b/cpp/src/tests/logging.cpp index 47e601ed05..bb9ca22e51 100644 --- a/cpp/src/tests/logging.cpp +++ b/cpp/src/tests/logging.cpp @@ -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(testQuoteNonPrintable) { 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"); |
