From: Marcin Siodelski Date: Thu, 12 Mar 2015 10:14:02 +0000 (+0100) Subject: [3736] Fixed the useInitializationList issue in the Logger Manager test. X-Git-Tag: trac3764_base~14^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd16ce3963d721576a2e3f65cd4beb163759f80;p=thirdparty%2Fkea.git [3736] Fixed the useInitializationList issue in the Logger Manager test. --- diff --git a/src/lib/log/tests/logger_manager_unittest.cc b/src/lib/log/tests/logger_manager_unittest.cc index c5b036e437..1b6e2da965 100644 --- a/src/lib/log/tests/logger_manager_unittest.cc +++ b/src/lib/log/tests/logger_manager_unittest.cc @@ -64,12 +64,13 @@ class SpecificationForFileLogger { public: // Constructor - allocate file and create the specification object - SpecificationForFileLogger() : spec_(), name_(""), logname_("filelogger") { + SpecificationForFileLogger() : spec_(), name_(createTempFileName()), + logname_("filelogger") { // Set the output to a temporary file. OutputOption option; option.destination = OutputOption::DEST_FILE; - option.filename = name_ = createTempFilename(); + option.filename = name_; // Set target output to the file logger. The defauls indicate // INFO severity.