happens to be in $HOME.
This is especially important for signer certificates; without this
it looks like the ones from $HOME will be used.
boost::system::error_code ec;
boost::filesystem::remove ("build/test/config.xml", ec);
boost::system::error_code ec;
boost::filesystem::remove ("build/test/config.xml", ec);
- Config::override_path = "build/test";
- ofstream f ("build/test/config.xml");
+ Config::override_path = "build/test/bad_config";
+ ofstream f ("build/test/bad_config/config.xml");
f << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
<< "<Config>\n"
<< "<Foo></Foo>\n"
f << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
<< "<Config>\n"
<< "<Foo></Foo>\n"
+ State::override_path = "build/test/state";
+ boost::filesystem::remove_all (*State::override_path);
+
dcpomatic_setup ();
setup_test_config ();
dcpomatic_setup ();
setup_test_config ();