]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3736] Fixed the useInitializationList issue in the Logger Manager test.
authorMarcin Siodelski <marcin@isc.org>
Thu, 12 Mar 2015 10:14:02 +0000 (11:14 +0100)
committerMarcin Siodelski <marcin@isc.org>
Thu, 12 Mar 2015 10:14:02 +0000 (11:14 +0100)
src/lib/log/tests/logger_manager_unittest.cc

index c5b036e437ef5fc3677117d2a7149ded833a4c70..1b6e2da965ec7ce55f1672c86f96d122491ac4ed 100644 (file)
@@ -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.