/*
- Copyright (C) 2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
+
#include "lib/config.h"
#include "test.h"
#include <boost/test/unit_test.hpp>
#include <fstream>
+
using std::ofstream;
+
static void
rewrite_bad_config ()
{
Config::drop ();
Config::instance()->write();
- check_file ("test/data/utf8_config.xml", "build/test/config.xml");
+ check_text_file ("test/data/utf8_config.xml", "build/test/config.xml");
+
+ /* This test has called Config::set_defaults(), so take us back
+ to the config that we want for our tests.
+ */
+ setup_test_config ();
}