diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-13 01:10:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-13 01:10:03 +0000 |
| commit | ec6b451c615134984688a2085d6c3f9fcfa870bc (patch) | |
| tree | 364e194c2edc0c2c7a62325b1e3ac01b85c35f2c /test/config_test.cc | |
| parent | 08feee25150ff15bad67087c80e44ba21e6ebd0d (diff) | |
Recover test config after config_test.cc runs.
Diffstat (limited to 'test/config_test.cc')
| -rw-r--r-- | test/config_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/config_test.cc b/test/config_test.cc index 25e8c7d9d..dad545a48 100644 --- a/test/config_test.cc +++ b/test/config_test.cc @@ -19,6 +19,7 @@ */ #include "lib/config.h" +#include "test.h" #include <boost/test/unit_test.hpp> #include <fstream> @@ -87,4 +88,9 @@ BOOST_AUTO_TEST_CASE (config_backup_test) BOOST_CHECK (boost::filesystem::exists ("build/test/config.xml.2")); BOOST_CHECK (boost::filesystem::exists ("build/test/config.xml.3")); BOOST_CHECK (boost::filesystem::exists ("build/test/config.xml.4")); + + /* This test has called Config::set_defaults(), so take us back + to the config that we want for our tests. + */ + setup_test_config (); } |
