Browse Source

[3736] Fixed the useInitializationList issue in the Logger Manager test.

Marcin Siodelski 10 years ago
parent
commit
3cd16ce396
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/log/tests/logger_manager_unittest.cc

+ 3 - 2
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.