Make unit tests use their own configuration rather than whatever
[dcpomatic.git] / test / config_test.cc
index dad545a48e89db4a83c992f14dd63168c4ceaa43..cd2b196cf95ef4fb3a4a47947c0326cdca0df208 100644 (file)
@@ -31,8 +31,8 @@ rewrite_bad_config ()
        boost::system::error_code ec;
        boost::filesystem::remove ("build/test/config.xml", ec);
 
-       Config::test_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"