Add ConfigRestorer and use it instead of setup_test_config() directly.
[dcpomatic.git] / test / test.h
index 217b738f48d2144d81fba4f4dc589f7f745fd09f..2b01db294286743dbca0a2631ff72c6f8174be5a 100644 (file)
@@ -56,7 +56,6 @@ private:
 
 
 extern bool wait_for_jobs ();
-extern void setup_test_config ();
 extern std::shared_ptr<Film> new_test_film (std::string);
 extern std::shared_ptr<Film> new_test_film2 (std::string, std::vector<std::shared_ptr<Content>> content = {}, Cleanup* cleanup = nullptr);
 extern void check_dcp (boost::filesystem::path, boost::filesystem::path);
@@ -91,6 +90,13 @@ private:
 };
 
 
+class ConfigRestorer
+{
+public:
+       ~ConfigRestorer();
+};
+
+
 namespace dcp {
 
 std::ostream& operator<< (std::ostream& s, dcp::Size i);