projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pot/merge.
[dcpomatic.git]
/
test
/
config_test.cc
diff --git
a/test/config_test.cc
b/test/config_test.cc
index d22e635c826a93713b0fb067158f11217a992370..d78b9357b86dc8943fcb5021255392c813fa09ed 100644
(file)
--- a/
test/config_test.cc
+++ b/
test/config_test.cc
@@
-1,5
+1,5
@@
/*
/*
- 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.
This file is part of DCP-o-matic.
@@
-18,13
+18,16
@@
*/
*/
+
#include "lib/config.h"
#include "test.h"
#include <boost/test/unit_test.hpp>
#include <fstream>
#include "lib/config.h"
#include "test.h"
#include <boost/test/unit_test.hpp>
#include <fstream>
+
using std::ofstream;
using std::ofstream;
+
static void
rewrite_bad_config ()
{
static void
rewrite_bad_config ()
{
@@
-101,7
+104,7
@@
BOOST_AUTO_TEST_CASE (config_write_utf8_test)
Config::drop ();
Config::instance()->write();
Config::drop ();
Config::instance()->write();
- check_
file ("test/data/utf8_config.xml", "build/test/config.xml", false
);
+ 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.
/* This test has called Config::set_defaults(), so take us back
to the config that we want for our tests.