*/
#include "lib/config.h"
+#include "test.h"
#include <boost/test/unit_test.hpp>
#include <fstream>
boost::system::error_code ec;
boost::filesystem::remove ("build/test/config.xml", ec);
- Config::test_path = "build/test";
+ Config::override_path = "build/test";
ofstream f ("build/test/config.xml");
f << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
<< "<Config>\n"
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 ();
}