summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-02-18 20:21:51 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-18 20:21:51 +0100
commit875d15256aab7ebf9e9b0548b68d88056695d1cc (patch)
tree8fa8a92b4bcc7a76d1e3a6419479fda3f245bb56
parentd4826867a7ac80c06c1a28edb526c748ff3f015f (diff)
Write logs during tests to a file.
-rw-r--r--test/test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.cc b/test/test.cc
index 836e74f52..c0d5d776f 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -35,6 +35,8 @@
#include "lib/dcp_content_type.h"
#include "lib/log_entry.h"
#include "lib/compose.hpp"
+#include "lib/file_log.h"
+#include "lib/dcpomatic_log.h"
#include "test.h"
#include <dcp/dcp.h>
#include <dcp/cpl.h>
@@ -113,6 +115,8 @@ struct TestConfig
if (env_private) {
private_data = env_private;
}
+
+ dcpomatic_log.reset (new FileLog("build/test/log"));
}
~TestConfig ()