conf-file-processor: fix empty file creation if conf file is same as dynamic

refs: #5071

Change-Id: I031381156d3c9aee21bb8ab7d018a37189e4a321
diff --git a/tests/test-conf-file-processor.cpp b/tests/test-conf-file-processor.cpp
index d00f6ed..e132e11 100644
--- a/tests/test-conf-file-processor.cpp
+++ b/tests/test-conf-file-processor.cpp
@@ -260,12 +260,17 @@
   commentOut("lsa-interest-lifetime", config);
   commentOut("router-dead-interval", config);
 
-  BOOST_CHECK_EQUAL(processConfigurationString(config), true);
+  BOOST_CHECK(processConfigurationString(config));
 
   BOOST_CHECK_EQUAL(conf.getLsaRefreshTime(), static_cast<uint32_t>(LSA_REFRESH_TIME_DEFAULT));
   BOOST_CHECK_EQUAL(conf.getLsaInterestLifetime(),
                     static_cast<ndn::time::seconds>(LSA_INTEREST_LIFETIME_DEFAULT));
-  BOOST_CHECK_EQUAL(conf.getRouterDeadInterval(), (2*conf.getLsaRefreshTime()));
+  BOOST_CHECK_EQUAL(conf.getRouterDeadInterval(), (2 * conf.getLsaRefreshTime()));
+
+  BOOST_CHECK(conf.m_confFileName != conf.getConfFileNameDynamic());
+  conf.m_confFileName = "/tmp/nlsr.conf";
+  BOOST_CHECK(conf.m_confFileName == conf.getConfFileNameDynamic());
+  BOOST_CHECK(!processConfigurationString(config));
 }
 
 BOOST_AUTO_TEST_CASE(DefaultValuesNeighbors)