summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-02-18 20:17:39 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-18 20:17:39 +0100
commit648b8ed1987f4a254a71fca4c2c420ab9a9e80f1 (patch)
treea65d3c04b48cf4634f9907375485abefcf6743f7
parentb882d29d4323875b07c7e4f2925811627ba1c246 (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 a9d3ed1c7..bf27c0cf1 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 ()